Skip to content

Commit 1eb0da1

Browse files
committed
Fixed a test failure in the comment tests.
1 parent 2756092 commit 1eb0da1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/regressiontests/comment_tests/tests/moderation_view_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def testFlagPostNext(self):
3838
self.client.login(username="normaluser", password="normaluser")
3939
response = self.client.post("/flag/%d/" % pk, {'next': "/go/here/"})
4040
self.assertEqual(response["Location"],
41-
"http://testserver/go/here/?c=1")
41+
"http://testserver/go/here/?c=%d" % pk)
4242

4343
def testFlagPostUnsafeNext(self):
4444
"""
@@ -135,7 +135,7 @@ def testDeletePostNext(self):
135135
self.client.login(username="normaluser", password="normaluser")
136136
response = self.client.post("/delete/%d/" % pk, {'next': "/go/here/"})
137137
self.assertEqual(response["Location"],
138-
"http://testserver/go/here/?c=1")
138+
"http://testserver/go/here/?c=%d" % pk)
139139

140140
def testDeletePostUnsafeNext(self):
141141
"""
@@ -209,7 +209,7 @@ def testApprovePostNext(self):
209209
response = self.client.post("/approve/%d/" % c1.pk,
210210
{'next': "/go/here/"})
211211
self.assertEqual(response["Location"],
212-
"http://testserver/go/here/?c=1")
212+
"http://testserver/go/here/?c=%d" % c1.pk)
213213

214214
def testApprovePostUnsafeNext(self):
215215
"""

0 commit comments

Comments
 (0)