Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #22988 -- Adjusted an introspection test assertion.

Also changed test to use assertNotIn.
  • Loading branch information...
commit b7455b52a07feb6cee482ecef9c1797d9b16221f 1 parent 011abb7
@jarshwah jarshwah authored charettes committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/introspection/tests.py
View
4 tests/introspection/tests.py
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.