예제 #1
0
파일: test_path.py 프로젝트: exogen/80sheep
 def test_slashes_escaped(self):
     self.assertEquals(Path.escape(r'//'), r'\/\/')
예제 #2
0
파일: test_path.py 프로젝트: exogen/80sheep
 def test_backslashes_escaped(self):
     self.assertEquals(Path.escape('\\\\'), r'\\\\')
예제 #3
0
파일: test_path.py 프로젝트: exogen/80sheep
 def test_other_punctuation_unescaped(self):
     s = '`~!@#$%^&*()-_=+[{]}|;:\'",<.>?'
     self.assertEquals(Path.escape(s), s)