diff options
| author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2013-05-21 10:42:15 +0100 |
|---|---|---|
| committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2013-05-21 10:42:15 +0100 |
| commit | 09f865276554f35060ff939722ec4cefd578edf6 (patch) | |
| tree | 39afbc8547b1e05cf58855369dbb4647fb642c84 /tests/backends | |
| parent | 18856f866cc0e1cc703ae3f4c84b3c25a847b370 (diff) | |
Use assertIsInstance in tests.
Gives much nicer errors when it fails.
Diffstat (limited to 'tests/backends')
| -rw-r--r-- | tests/backends/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py index 81b2851403..79e3dd444e 100644 --- a/tests/backends/tests.py +++ b/tests/backends/tests.py @@ -172,7 +172,7 @@ class LastExecutedQueryTest(TestCase): sql, params = persons.query.sql_with_params() cursor = persons.query.get_compiler('default').execute_sql(None) last_sql = cursor.db.ops.last_executed_query(cursor, sql, params) - self.assertTrue(isinstance(last_sql, six.text_type)) + self.assertIsInstance(last_sql, six.text_type) @unittest.skipUnless(connection.vendor == 'sqlite', "This test is specific to SQLite.") |
