diff options
author | Florian Apolloner <florian@apolloner.eu> | 2012-12-10 23:34:51 +0100 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2012-12-10 23:37:47 +0100 |
commit | 6e70f67470d6d4baf87728702886f89ac075b73c (patch) | |
tree | 6c0588a252c4b6ffd070ef540e76d604c9e38f1c | |
parent | 59a3e26425cfabdb39295085ca6f3d5922bf1ec6 (diff) | |
download | django-6e70f67470d6d4baf87728702886f89ac075b73c.tar.gz |
[1.3.X] Fixed a test failure in the comment tests.
Backport of 1eb0da1c5ba3096f218d1df13d02a2b8e1ac7a36 from master.
-rw-r--r-- | tests/regressiontests/comment_tests/tests/moderation_view_tests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/regressiontests/comment_tests/tests/moderation_view_tests.py b/tests/regressiontests/comment_tests/tests/moderation_view_tests.py index 59cd34a818..320924d610 100644 --- a/tests/regressiontests/comment_tests/tests/moderation_view_tests.py +++ b/tests/regressiontests/comment_tests/tests/moderation_view_tests.py @@ -36,7 +36,7 @@ class FlagViewTests(CommentTestCase): self.client.login(username="normaluser", password="normaluser") response = self.client.post("/flag/%d/" % pk, {'next': "/go/here/"}) self.assertEqual(response["Location"], - "http://testserver/go/here/?c=1") + "http://testserver/go/here/?c=%d" % pk) def testFlagPostUnsafeNext(self): """ @@ -133,7 +133,7 @@ class DeleteViewTests(CommentTestCase): self.client.login(username="normaluser", password="normaluser") response = self.client.post("/delete/%d/" % pk, {'next': "/go/here/"}) self.assertEqual(response["Location"], - "http://testserver/go/here/?c=1") + "http://testserver/go/here/?c=%d" % pk) def testDeletePostUnsafeNext(self): """ @@ -207,7 +207,7 @@ class ApproveViewTests(CommentTestCase): response = self.client.post("/approve/%d/" % c1.pk, {'next': "/go/here/"}) self.assertEqual(response["Location"], - "http://testserver/go/here/?c=1") + "http://testserver/go/here/?c=%d" % c1.pk) def testApprovePostUnsafeNext(self): """ |