Kaydet (Commit) 1eb0da1c authored tarafından Florian Apolloner's avatar Florian Apolloner

Fixed a test failure in the comment tests.

üst 27560924
...@@ -38,7 +38,7 @@ class FlagViewTests(CommentTestCase): ...@@ -38,7 +38,7 @@ class FlagViewTests(CommentTestCase):
self.client.login(username="normaluser", password="normaluser") self.client.login(username="normaluser", password="normaluser")
response = self.client.post("/flag/%d/" % pk, {'next': "/go/here/"}) response = self.client.post("/flag/%d/" % pk, {'next': "/go/here/"})
self.assertEqual(response["Location"], self.assertEqual(response["Location"],
"http://testserver/go/here/?c=1") "http://testserver/go/here/?c=%d" % pk)
def testFlagPostUnsafeNext(self): def testFlagPostUnsafeNext(self):
""" """
...@@ -135,7 +135,7 @@ class DeleteViewTests(CommentTestCase): ...@@ -135,7 +135,7 @@ class DeleteViewTests(CommentTestCase):
self.client.login(username="normaluser", password="normaluser") self.client.login(username="normaluser", password="normaluser")
response = self.client.post("/delete/%d/" % pk, {'next': "/go/here/"}) response = self.client.post("/delete/%d/" % pk, {'next': "/go/here/"})
self.assertEqual(response["Location"], self.assertEqual(response["Location"],
"http://testserver/go/here/?c=1") "http://testserver/go/here/?c=%d" % pk)
def testDeletePostUnsafeNext(self): def testDeletePostUnsafeNext(self):
""" """
...@@ -209,7 +209,7 @@ class ApproveViewTests(CommentTestCase): ...@@ -209,7 +209,7 @@ class ApproveViewTests(CommentTestCase):
response = self.client.post("/approve/%d/" % c1.pk, response = self.client.post("/approve/%d/" % c1.pk,
{'next': "/go/here/"}) {'next': "/go/here/"})
self.assertEqual(response["Location"], self.assertEqual(response["Location"],
"http://testserver/go/here/?c=1") "http://testserver/go/here/?c=%d" % c1.pk)
def testApprovePostUnsafeNext(self): def testApprovePostUnsafeNext(self):
""" """
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment