예제 #1
0
 def test_noendingdots(self):
     p = mod.vfatprotect("/some/path/with./dots")
     self.assertNotIn(".", p)
     p = mod.vfatprotect("/some/path/with..../many dots")
     self.assertNotIn(".", p)
     p = mod.vfatprotect("/some/path/with /many spaces")
     self.assertNotIn(" /", p)
예제 #2
0
 def test_nobadchars(self):
     for f in '?<>\\:*|':
         p = mod.vfatprotect("/path/with%sbadchar" % f)
         self.assertNotIn(f, p)