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