Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.3.X] Fixed a test failure in the comment tests.

Backport of 1eb0da1c5ba3096f218d1df13d02a2b8e1ac7a36 from master.
  • Loading branch information...
commit 6e70f67470d6d4baf87728702886f89ac075b73c 1 parent 59a3e26
@apollo13 apollo13 authored
View
6 tests/regressiontests/comment_tests/tests/moderation_view_tests.py
@@ -36,7 +36,7 @@ def testFlagPostNext(self):
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 @@ def testDeletePostNext(self):
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 @@ def testApprovePostNext(self):
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):
"""
Please sign in to comment.
Something went wrong with that request. Please try again.