From a739573e178694cf2c4ad77b57fbc7e90c1c5d55 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Sat, 23 Nov 2013 19:50:20 +0100 Subject: [PATCH] Fixed test breakage under python 3 introduced by a480f8320a5b36501bfd0e8cd70b8dc04adf2d08. --- tests/admin_views/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 77df3651f7d..3906224e332 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -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',))