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