diff options
| author | Josh Smeaton <josh.smeaton@gmail.com> | 2014-07-10 12:24:19 +1000 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2014-07-10 00:47:57 -0400 |
| commit | b7455b52a07feb6cee482ecef9c1797d9b16221f (patch) | |
| tree | 0c546b5366e6087f003a6a7d13de0bcacbf1ba34 | |
| parent | 011abb7d96c75f6154c15a8a0f997d8c27698679 (diff) | |
Fixed #22988 -- Adjusted an introspection test assertion.
Also changed test to use assertNotIn.
| -rw-r--r-- | tests/introspection/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py index d04fa0a6d1..2cf766f10c 100644 --- a/tests/introspection/tests.py +++ b/tests/introspection/tests.py @@ -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 |
