Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a test failure in the comment tests.

  • Loading branch information...
commit 1eb0da1c5ba3096f218d1df13d02a2b8e1ac7a36 1 parent 2756092
Florian Apolloner apollo13 authored
6 tests/regressiontests/comment_tests/tests/moderation_view_tests.py
View
@@ -38,7 +38,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):
"""
@@ -135,7 +135,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):
"""
@@ -209,7 +209,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.