Commits

Anonymous committed 5087f4d

[soc2010/test-refactor] fix to updated syntax for error messages to match trunk

  • Participants
  • Parent commits 10903d0
  • Branches soc2010/test-refactor

Comments (0)

Files changed (1)

tests/regressiontests/test_client_regress/models.py

         try:
             self.assertContains(response, 'text', status_code=999)
         except AssertionError, e:
-            self.assertTrue("Couldn't retrieve page: Response code was 200 (expected 999)" in str(e))
+            self.assertTrue("Couldn't retrieve content: Response code was 200 (expected 999)" in str(e))
         try:
             self.assertContains(response, 'text', status_code=999, msg_prefix='abc')
         except AssertionError, e:
-            self.assertTrue("abc: Couldn't retrieve page: Response code was 200 (expected 999)" in str(e))
+            self.assertTrue("abc: Couldn't retrieve content: Response code was 200 (expected 999)" in str(e))
 
         try:
             self.assertNotContains(response, 'text', status_code=999)
         except AssertionError, e:
-            self.assertTrue("Couldn't retrieve page: Response code was 200 (expected 999)" in str(e))
+            self.assertTrue("Couldn't retrieve content: Response code was 200 (expected 999)" in str(e))
         try:
             self.assertNotContains(response, 'text', status_code=999, msg_prefix='abc')
         except AssertionError, e:
-            self.assertTrue("abc: Couldn't retrieve page: Response code was 200 (expected 999)" in str(e))
+            self.assertTrue("abc: Couldn't retrieve content: Response code was 200 (expected 999)" in str(e))
 
         try:
             self.assertNotContains(response, 'once')