Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

Backport of 1eb0da1 from master.
  • Loading branch information...
commit 6e70f67470d6d4baf87728702886f89ac075b73c 1 parent 59a3e26
Florian Apolloner authored
6  tests/regressiontests/comment_tests/tests/moderation_view_tests.py
@@ -36,7 +36,7 @@ def testFlagPostNext(self):
36 36
         self.client.login(username="normaluser", password="normaluser")
37 37
         response = self.client.post("/flag/%d/" % pk, {'next': "/go/here/"})
38 38
         self.assertEqual(response["Location"],
39  
-            "http://testserver/go/here/?c=1")
  39
+            "http://testserver/go/here/?c=%d" % pk)
40 40
 
41 41
     def testFlagPostUnsafeNext(self):
42 42
         """
@@ -133,7 +133,7 @@ def testDeletePostNext(self):
133 133
         self.client.login(username="normaluser", password="normaluser")
134 134
         response = self.client.post("/delete/%d/" % pk, {'next': "/go/here/"})
135 135
         self.assertEqual(response["Location"],
136  
-            "http://testserver/go/here/?c=1")
  136
+            "http://testserver/go/here/?c=%d" % pk)
137 137
 
138 138
     def testDeletePostUnsafeNext(self):
139 139
         """
@@ -207,7 +207,7 @@ def testApprovePostNext(self):
207 207
         response = self.client.post("/approve/%d/" % c1.pk,
208 208
             {'next': "/go/here/"})
209 209
         self.assertEqual(response["Location"],
210  
-            "http://testserver/go/here/?c=1")
  210
+            "http://testserver/go/here/?c=%d" % c1.pk)
211 211
 
212 212
     def testApprovePostUnsafeNext(self):
213 213
         """

0 notes on commit 6e70f67

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