0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00

Fixed test breakage under python 3 introduced by a480f8320a.

This commit is contained in:
Baptiste Mispelon 2013-11-23 19:50:20 +01:00
parent 9e87444552
commit a739573e17

View File

@ -2971,7 +2971,7 @@ class AdminInlineFileUploadTest(TestCase):
"pictures-1-image": "",
}
response = self.client.post('/test_admin/%s/admin_views/gallery/%d/' % (self.urlbit, self.gallery.id), post_data)
self.assertTrue(response._container[0].find("Currently:") > -1)
self.assertContains(response, b"Currently")
@override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',))