示例#1
0
 def test_slashes_escaped(self):
     self.assertEquals(Path.escape(r'//'), r'\/\/')
示例#2
0
 def test_backslashes_escaped(self):
     self.assertEquals(Path.escape('\\\\'), r'\\\\')
示例#3
0
 def test_other_punctuation_unescaped(self):
     s = '`~!@#$%^&*()-_=+[{]}|;:\'",<.>?'
     self.assertEquals(Path.escape(s), s)