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)
def test_nobadchars(self): for f in '?<>\\:*|': p = mod.vfatprotect("/path/with%sbadchar" % f) self.assertNotIn(f, p)