summaryrefslogtreecommitdiff
path: root/tests/introspection/tests.py
diff options
context:
space:
mode:
authorThomas Chaumeny <thomas.chaumeny@polyconseil.fr>2014-09-26 14:31:50 +0200
committerLoic Bistuer <loic.bistuer@gmail.com>2014-09-29 00:01:38 +0700
commitb2aad7b836bfde012756cca69291c14d2fdbd334 (patch)
tree53c93f9804075ed347d6d83718d37f7dc2a06340 /tests/introspection/tests.py
parentcaf5cd7ba7c9d73194e394a26c81f1a677d54a6c (diff)
downloaddjango-b2aad7b836bfde012756cca69291c14d2fdbd334.tar.gz
Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.
Thanks Collin Anderson for the review.
Diffstat (limited to 'tests/introspection/tests.py')
-rw-r--r--tests/introspection/tests.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py
index 59e0fc60ee..9fc99589a8 100644
--- a/tests/introspection/tests.py
+++ b/tests/introspection/tests.py
@@ -55,7 +55,7 @@ class IntrospectionTests(TestCase):
def test_installed_models(self):
tables = [Article._meta.db_table, Reporter._meta.db_table]
models = connection.introspection.installed_models(tables)
- self.assertEqual(models, set([Article, Reporter]))
+ self.assertEqual(models, {Article, Reporter})
def test_sequence_list(self):
sequences = connection.introspection.sequence_list()
@@ -129,8 +129,8 @@ class IntrospectionTests(TestCase):
key_columns = connection.introspection.get_key_columns(cursor, Article._meta.db_table)
self.assertEqual(
set(key_columns),
- set([('reporter_id', Reporter._meta.db_table, 'id'),
- ('response_to_id', Article._meta.db_table, 'id')]))
+ {('reporter_id', Reporter._meta.db_table, 'id'),
+ ('response_to_id', Article._meta.db_table, 'id')})
def test_get_primary_key_column(self):
with connection.cursor() as cursor: