Ticket #4779: patch

File patch, 1.5 KB (added by (removed), 12 years ago)
  • tests/regressiontests/test_client_regress/models.py

    === modified file 'tests/regressiontests/test_client_regress/models.py'
     
    7070        try:
    7171            self.assertRedirects(response, '/test_client/get_view/')
    7272        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)")
    7474
    7575    def test_incorrect_target(self):
    7676        "An assertion is raised if the response redirects to another target"
     
    7979            # Should redirect to get_view
    8080            self.assertRedirects(response, '/test_client/some_view/')
    8181        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)")
    8383       
    8484    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"
    8686        response = self.client.get('/test_client/double_redirect_view/')
    8787        try:
    8888            # The redirect target responds with a 301 code, not 200
Back to Top