Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

Backport of 1eb0da1 from master.
  • Loading branch information...
commit 919fbe08c906f6f59dccb2a45a58e49d61df7c7b 1 parent 82d4786
Florian Apolloner authored December 10, 2012
6  tests/regressiontests/comment_tests/tests/moderation_view_tests.py
@@ -38,7 +38,7 @@ def testFlagPostNext(self):
38 38
         self.client.login(username="normaluser", password="normaluser")
39 39
         response = self.client.post("/flag/%d/" % pk, {'next': "/go/here/"})
40 40
         self.assertEqual(response["Location"],
41  
-            "http://testserver/go/here/?c=1")
  41
+            "http://testserver/go/here/?c=%d" % pk)
42 42
 
43 43
     def testFlagPostUnsafeNext(self):
44 44
         """
@@ -135,7 +135,7 @@ def testDeletePostNext(self):
135 135
         self.client.login(username="normaluser", password="normaluser")
136 136
         response = self.client.post("/delete/%d/" % pk, {'next': "/go/here/"})
137 137
         self.assertEqual(response["Location"],
138  
-            "http://testserver/go/here/?c=1")
  138
+            "http://testserver/go/here/?c=%d" % pk)
139 139
 
140 140
     def testDeletePostUnsafeNext(self):
141 141
         """
@@ -209,7 +209,7 @@ def testApprovePostNext(self):
209 209
         response = self.client.post("/approve/%d/" % c1.pk,
210 210
             {'next': "/go/here/"})
211 211
         self.assertEqual(response["Location"],
212  
-            "http://testserver/go/here/?c=1")
  212
+            "http://testserver/go/here/?c=%d" % c1.pk)
213 213
 
214 214
     def testApprovePostUnsafeNext(self):
215 215
         """

0 notes on commit 919fbe0

Please sign in to comment.
Something went wrong with that request. Please try again.