1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Converted more test assertions to assert[Not]Contains.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17910 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Claude Paroz
2012-04-14 13:35:25 +00:00
parent 749243941c
commit 0e01023897
6 changed files with 42 additions and 64 deletions

View File

@@ -75,7 +75,7 @@ class ClientTest(TestCase):
self.assertEqual(response.status_code, 200)
self.assertEqual(response.context['data'], '37')
self.assertEqual(response.templates[0].name, 'POST Template')
self.assertTrue('Data received' in response.content)
self.assertContains(response, 'Data received')
def test_response_headers(self):
"Check the value of HTTP headers returned in a response"