Fixed #22988 -- Adjusted an introspection test assertion.

Also changed test to use assertNotIn.
This commit is contained in:
Josh Smeaton 2014-07-10 12:24:19 +10:00 committed by Simon Charette
parent 011abb7d96
commit b7455b52a0
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ class IntrospectionTests(TestCase):
cursor.execute('CREATE TABLE django_ixn_test_table (id INTEGER);')
tl = connection.introspection.django_table_names()
cursor.execute("DROP TABLE django_ixn_test_table;")
self.assertTrue('django_ixn_testcase_table' not in tl,
"django_table_names() returned a non-Django table")
self.assertNotIn('django_ixn_test_table', tl,
"django_table_names() returned a non-Django table")
def test_django_table_names_retval_type(self):
# Ticket #15216