~ubuntu-branches/ubuntu/saucy/python-django/saucy-updates

« back to all changes in this revision

Viewing changes to tests/regressiontests/comment_tests/tests/moderation_view_tests.py

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2013-02-24 10:28:08 UTC
  • mfrom: (1.2.17)
  • mto: This revision was merged to the branch mainline in revision 45.
  • Revision ID: package-import@ubuntu.com-20130224102808-jx3ea5pnoefkzu94
Tags: upstream-1.4.5
Import upstream version 1.4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
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
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
        """