Exemplo n.º 1
0
 def test_bw_02(self):
     with self.assertRaisesRegex(AssertionError, 'list'):
         a = {1, 2, 3}
         Utils.list2dict(a)
Exemplo n.º 2
0
 def test_bw_03(self):
     with self.assertRaisesRegex(AssertionError, 'list'):
         a = {1: 0, 2: 1, 3: 2}
         Utils.list2dict(a)
Exemplo n.º 3
0
 def gw(self, a, e):
     r = Utils.list2dict(a)
     self.assertDictEqual(r, e)