コード例 #1
0
 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)
コード例 #2
0
ファイル: test_common_utils.py プロジェクト: YujiAzama/tacker
 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)
コード例 #3
0
 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)