mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Removed unneeded list() calls in sorted() argument.
This commit is contained in:
committed by
Tim Graham
parent
a98bcfb0dd
commit
1835563ab8
@@ -168,7 +168,7 @@ class CaseInsensitiveMappingTests(SimpleTestCase):
|
||||
CaseInsensitiveMapping([(1, '2')])
|
||||
|
||||
def test_list(self):
|
||||
self.assertEqual(sorted(list(self.dict1)), sorted(['Accept', 'content-type']))
|
||||
self.assertEqual(list(self.dict1), ['Accept', 'content-type'])
|
||||
|
||||
def test_dict(self):
|
||||
self.assertEqual(dict(self.dict1), {'Accept': 'application/json', 'content-type': 'text/html'})
|
||||
|
||||
Reference in New Issue
Block a user