def test_dict(self): input_dict = {"foo": "bar", 42: "baz", "aaa": "zzz"} expected = ((42, "baz"), ("aaa", "zzz"), ("foo", "bar")) output_tuple = utils.dict2tuple(input_dict) self.assertEqual(expected, output_tuple)
def test_dict(self): input_dict = {'foo': 'bar', 42: 'baz', 'aaa': 'zzz'} expected = ((42, 'baz'), ('aaa', 'zzz'), ('foo', 'bar')) output_tuple = utils.dict2tuple(input_dict) self.assertEqual(expected, output_tuple)