summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2012-12-10 23:34:51 +0100
committerFlorian Apolloner <florian@apolloner.eu>2012-12-10 23:34:51 +0100
commit1eb0da1c5ba3096f218d1df13d02a2b8e1ac7a36 (patch)
tree98077e8302aa6304041731264ab20b0d7aef69ff
parent27560924ec1e567be4727ef8d7dfc4d3879c048c (diff)
Fixed a test failure in the comment tests.
-rw-r--r--tests/regressiontests/comment_tests/tests/moderation_view_tests.py6
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 c7574193ee..0f83d5e210 100644
--- a/tests/regressiontests/comment_tests/tests/moderation_view_tests.py
+++ b/tests/regressiontests/comment_tests/tests/moderation_view_tests.py
@@ -38,7 +38,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):
"""
@@ -135,7 +135,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):
"""
@@ -209,7 +209,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):
"""