1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

[py3] Compared response.content with bytes.

This commit is contained in:
Aymeric Augustin
2012-08-14 11:57:18 +02:00
parent d1452f6097
commit faf570df18
9 changed files with 61 additions and 53 deletions

View File

@@ -787,7 +787,7 @@ class CustomModelAdminTest(AdminViewBasicTest):
def testCustomAdminSiteView(self):
self.client.login(username='super', password='secret')
response = self.client.get('/test_admin/%s/my_view/' % self.urlbit)
self.assertEqual(response.content, "Django is a magical pony!")
self.assertEqual(response.content, b"Django is a magical pony!")
def get_perm(Model, perm):
"""Return the permission object, for the Model"""