mirror of
https://github.com/django/django.git
synced 2025-08-23 03:54:35 +00:00
Fix all violators of E231
This commit is contained in:
parent
f2d8027c9a
commit
9d740eb8b1
74 changed files with 628 additions and 629 deletions
|
@ -139,14 +139,14 @@ class SortedDictTests(IgnorePendingDeprecationWarningsMixin, SimpleTestCase):
|
|||
class MergeDictTests(IgnorePendingDeprecationWarningsMixin, SimpleTestCase):
|
||||
|
||||
def test_simple_mergedict(self):
|
||||
d1 = {'chris':'cool', 'camri':'cute', 'cotton':'adorable',
|
||||
'tulip':'snuggable', 'twoofme':'firstone'}
|
||||
d1 = {'chris': 'cool', 'camri': 'cute', 'cotton': 'adorable',
|
||||
'tulip': 'snuggable', 'twoofme': 'firstone'}
|
||||
|
||||
d2 = {'chris2':'cool2', 'camri2':'cute2', 'cotton2':'adorable2',
|
||||
'tulip2':'snuggable2'}
|
||||
d2 = {'chris2': 'cool2', 'camri2': 'cute2', 'cotton2': 'adorable2',
|
||||
'tulip2': 'snuggable2'}
|
||||
|
||||
d3 = {'chris3':'cool3', 'camri3':'cute3', 'cotton3':'adorable3',
|
||||
'tulip3':'snuggable3'}
|
||||
d3 = {'chris3': 'cool3', 'camri3': 'cute3', 'cotton3': 'adorable3',
|
||||
'tulip3': 'snuggable3'}
|
||||
|
||||
md = MergeDict(d1, d2, d3)
|
||||
|
||||
|
@ -183,7 +183,7 @@ class MergeDictTests(IgnorePendingDeprecationWarningsMixin, SimpleTestCase):
|
|||
[('key1', 'value1'), ('key2', 'value3'),
|
||||
('key4', 'value6')])
|
||||
|
||||
self.assertEqual([(k,mm.getlist(k)) for k in sorted(mm)],
|
||||
self.assertEqual([(k, mm.getlist(k)) for k in sorted(mm)],
|
||||
[('key1', ['value1']),
|
||||
('key2', ['value2', 'value3']),
|
||||
('key4', ['value5', 'value6'])])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue