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
1 changed files with 1 additions and 1 deletions

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',))