mirror of
https://github.com/django/django.git
synced 2025-12-04 00:55:36 +00:00
[py3] Compared response.content with bytes.
This commit is contained in:
parent
d1452f6097
commit
faf570df18
9 changed files with 61 additions and 53 deletions
|
|
@ -91,7 +91,7 @@ class ClientTest(TestCase):
|
|||
content_type="text/xml")
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.templates[0].name, "Book template")
|
||||
self.assertEqual(response.content, "Blink - Malcolm Gladwell")
|
||||
self.assertEqual(response.content, b"Blink - Malcolm Gladwell")
|
||||
|
||||
def test_redirect(self):
|
||||
"GET a URL that redirects elsewhere"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue