From f7969b0920c403118656f6bfec58d6454d79ef1a Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Tue, 28 Oct 2014 12:02:56 +0200 Subject: Fixed #23620 -- Used more specific assertions in the Django test suite. --- tests/multiple_database/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/multiple_database') diff --git a/tests/multiple_database/tests.py b/tests/multiple_database/tests.py index 88da4072ae..f230311eed 100644 --- a/tests/multiple_database/tests.py +++ b/tests/multiple_database/tests.py @@ -1485,7 +1485,7 @@ class AuthTestCase(TestCase): new_io = StringIO() management.call_command('dumpdata', 'auth', format='json', database='other', stdout=new_io) command_output = new_io.getvalue().strip() - self.assertTrue('"email": "alice@example.com"' in command_output) + self.assertIn('"email": "alice@example.com"', command_output) class AntiPetRouter(object): -- cgit v1.3