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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user