=== modified file 'tests/regressiontests/test_client_regress/models.py'
|
|
|
70 | 70 | try: |
71 | 71 | self.assertRedirects(response, '/test_client/get_view/') |
72 | 72 | except AssertionError, e: |
73 | | self.assertEquals(str(e), "Response didn't redirect as expected: Reponse code was 301 (expected 302)") |
| 73 | self.assertEquals(str(e), "Response didn't redirect as expected: Response code was 301 (expected 302)") |
74 | 74 | |
75 | 75 | def test_incorrect_target(self): |
76 | 76 | "An assertion is raised if the response redirects to another target" |
… |
… |
|
79 | 79 | # Should redirect to get_view |
80 | 80 | self.assertRedirects(response, '/test_client/some_view/') |
81 | 81 | except AssertionError, e: |
82 | | self.assertEquals(str(e), "Response didn't redirect as expected: Reponse code was 301 (expected 302)") |
| 82 | self.assertEquals(str(e), "Response didn't redirect as expected: Response code was 301 (expected 302)") |
83 | 83 | |
84 | 84 | def test_target_page(self): |
85 | | "An assertion is raised if the reponse redirect target cannot be retrieved as expected" |
| 85 | "An assertion is raised if the response redirect target cannot be retrieved as expected" |
86 | 86 | response = self.client.get('/test_client/double_redirect_view/') |
87 | 87 | try: |
88 | 88 | # The redirect target responds with a 301 code, not 200 |