diff options
author | James Bennett <ubernostrum@gmail.com> | 2009-05-15 02:54:55 +0000 |
---|---|---|
committer | James Bennett <ubernostrum@gmail.com> | 2009-05-15 02:54:55 +0000 |
commit | bcb0d124b409c68ede62f82421855a29ea5b8a39 (patch) | |
tree | 9ff41d699003ecf291b3abd964231848dfba6b0f | |
parent | d246401552ee37db485220adccd7b88693564f2a (diff) | |
download | django-bcb0d124b409c68ede62f82421855a29ea5b8a39.tar.gz |
Corrected tests from [10784]; instead of retrieving two comments, it was retrieving one comment twice.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10785 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r-- | tests/regressiontests/comment_tests/tests/comment_utils_moderators_tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/regressiontests/comment_tests/tests/comment_utils_moderators_tests.py b/tests/regressiontests/comment_tests/tests/comment_utils_moderators_tests.py index e018133bca..2e93b8b19a 100644 --- a/tests/regressiontests/comment_tests/tests/comment_utils_moderators_tests.py +++ b/tests/regressiontests/comment_tests/tests/comment_utils_moderators_tests.py @@ -28,7 +28,7 @@ class CommentUtilsModeratorTests(CommentTestCase): # emit the custom signals moderation listens for. e = Entry.objects.get(pk=1) data = self.getValidData(e) - self.client.post("/post/", data, REMOTE_ADDR="1.2.3.4") + self.client.post("/post/", data, REMOTE_ADDR="1.2.3.4") # We explicitly do a try/except to get the comment we've just @@ -39,6 +39,8 @@ class CommentUtilsModeratorTests(CommentTestCase): except IndexError: c1 = None + self.client.post("/post/", data, REMOTE_ADDR="1.2.3.4") + try: c2 = Comment.objects.all()[0] except IndexError: |