Пример #1
0
 def test_sorted_keys_dict(self):
     x = {"a": 1, "b": 2, "c": 3}
     y = utils.SortedKeysDict(x)
     assert list(y) == ["a", "b", "c"]
     assert repr(utils.SortedKeysDict()) == "SortedKeysDict({})"
 def test_sorted_keys_dict(self):
     x = {'a': 1, 'b': 2, 'c': 3}
     y = utils.SortedKeysDict(x)
     self.assertItemsEqual(y, ['a', 'b', 'c'])
     assert repr(utils.SortedKeysDict()) == \
         "SortedKeysDict({})"
Пример #3
0
 def test_sorted_keys_dict(self):
     x = {'a': 1, 'b': 2, 'c': 3}
     y = utils.SortedKeysDict(x)
     assert list(y) == ['a', 'b', 'c']
     assert repr(utils.SortedKeysDict()) == \
         "SortedKeysDict({})"