1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Refs #29838, Refs #28507 -- Made make_hashable() ignore key order.

This commit is contained in:
Simon Charette
2020-10-05 09:13:14 -04:00
committed by Mariusz Felisiak
parent 981a3426cf
commit 4c675523bd
3 changed files with 10 additions and 5 deletions

View File

@@ -10,7 +10,8 @@ class TestHashable(SimpleTestCase):
({}, ()),
({'a'}, ('a',)),
(frozenset({'a'}), {'a'}),
({'a': 1}, (('a', 1),)),
({'a': 1, 'b': 2}, (('a', 1), ('b', 2))),
({'b': 2, 'a': 1}, (('a', 1), ('b', 2))),
(('a', ['b', 1]), ('a', ('b', 1))),
(('a', {'b': 1}), ('a', (('b', 1),))),
)