Esempio n. 1
0
 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))
Esempio n. 2
0
 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))
Esempio n. 3
0
 def test_special_characters(self):
     self.assertEqual('\\:q\\-we,a\\\\sd\\;,100',
                      string_from_path([":q-we", "a\\sd;", 100]))
Esempio n. 4
0
 def test_special_characters(self):
     self.assertEqual("\\:q\\-we,a\\\\sd\\;,100", string_from_path([":q-we", "a\\sd;", 100]))