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