mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Removed unneeded list() calls in sorted() argument.
This commit is contained in:
parent
a98bcfb0dd
commit
1835563ab8
2 changed files with 3 additions and 3 deletions
|
@ -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'})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue