Permalink
Browse files

[soc2010/test-refactor] fix to updated syntax for error messages to m…

…atch trunk

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2010/test-refactor@13567 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent a2e30a4 commit 6f5899c281ae3259ec9061fd03eebe827cdac4da @PaulMcMillan PaulMcMillan committed Aug 9, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/regressiontests/test_client_regress/models.py
@@ -35,20 +35,20 @@ def test_contains(self):
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')

0 comments on commit 6f5899c

Please sign in to comment.