1
0
mirror of https://github.com/django/django.git synced 2025-03-20 06:10:46 +00:00

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

Backport of 1eb0da1c5ba3096f218d1df13d02a2b8e1ac7a36 from master.
This commit is contained in:
Florian Apolloner 2012-12-10 23:34:51 +01:00
parent 82d4786544
commit 919fbe08c9

@ -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):
"""