Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #22988 -- Adjusted an introspection test assertion.

Also changed test to use assertNotIn.
  • Loading branch information...
1 parent 011abb7 commit b7455b52a07feb6cee482ecef9c1797d9b16221f @jarshwah jarshwah committed with charettes
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/introspection/
4 tests/introspection/
@@ -20,8 +20,8 @@ def test_django_table_names(self):
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

0 comments on commit b7455b5

Please sign in to comment.
Something went wrong with that request. Please try again.