diff options
| author | Tim Graham <timograham@gmail.com> | 2016-04-07 22:04:45 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-04-08 10:12:33 -0400 |
| commit | 92053acbb9160862c3e743a99ed8ccff8d4f8fd6 (patch) | |
| tree | 50e7fd28a650f0e2352cf94f92e5a66d28a81988 /tests/select_related_regress | |
| parent | df8d8d4292684d6ffa7474f1e201aed486f02b53 (diff) | |
Fixed E128 flake8 warnings in tests/.
Diffstat (limited to 'tests/select_related_regress')
| -rw-r--r-- | tests/select_related_regress/tests.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/select_related_regress/tests.py b/tests/select_related_regress/tests.py index 640add4638..efa6a30f99 100644 --- a/tests/select_related_regress/tests.py +++ b/tests/select_related_regress/tests.py @@ -36,8 +36,10 @@ class SelectRelatedRegressTests(TestCase): c2 = Connection.objects.create(start=port2, end=port3) connections = Connection.objects.filter(start__device__building=b, end__device__building=b).order_by('id') - self.assertEqual([(c.id, six.text_type(c.start), six.text_type(c.end)) for c in connections], - [(c1.id, 'router/4', 'switch/7'), (c2.id, 'switch/7', 'server/1')]) + self.assertEqual( + [(c.id, six.text_type(c.start), six.text_type(c.end)) for c in connections], + [(c1.id, 'router/4', 'switch/7'), (c2.id, 'switch/7', 'server/1')] + ) connections = ( Connection.objects @@ -45,8 +47,10 @@ class SelectRelatedRegressTests(TestCase): .select_related() .order_by('id') ) - self.assertEqual([(c.id, six.text_type(c.start), six.text_type(c.end)) for c in connections], - [(c1.id, 'router/4', 'switch/7'), (c2.id, 'switch/7', 'server/1')]) + self.assertEqual( + [(c.id, six.text_type(c.start), six.text_type(c.end)) for c in connections], + [(c1.id, 'router/4', 'switch/7'), (c2.id, 'switch/7', 'server/1')] + ) # This final query should only have seven tables (port, device and building # twice each, plus connection once). Thus, 6 joins plus the FROM table. |
