def test_str_to_map2(self) : data = ',,' expects = {} result = chaski_config.str_to_map(data, ',', '=') self.assertEqual(expects, result)
def test_str_to_map0(self) : data = ' ab = cd ,ba=dc,abcd' expects = {'ab': 'cd', 'ba': 'dc', 'abcd': None} result = chaski_config.str_to_map(data, ',', '=') self.assertEqual(expects, result)