def test_string_from_path(self): self.assertEqual('qwe,asd,100', string_from_path(["qwe", "asd", 100])) self.assertEqual('', string_from_path([])) self.assertEqual('', string_from_path(None))
def test_string_from_path(self): self.assertEqual("qwe,asd,100", string_from_path(["qwe", "asd", 100])) self.assertEqual("", string_from_path([])) self.assertEqual("", string_from_path(None))
def test_special_characters(self): self.assertEqual('\\:q\\-we,a\\\\sd\\;,100', string_from_path([":q-we", "a\\sd;", 100]))
def test_special_characters(self): self.assertEqual("\\:q\\-we,a\\\\sd\\;,100", string_from_path([":q-we", "a\\sd;", 100]))