def test_makeChildrenExecutable(self): """ You can make all the children in a directory executable """ t = FilePath(self.mktemp()) t.makedirs() def _isexecDir(val=True): for f in t.child('resources').children(): perms = f.getPermissions() for perm in [perms.user, perms.group, perms.other]: self.assertEqual(perm.execute, val, "execute bit not set") d = Directory(t.path) d.create('minion') _isexecDir(False) d.makeExecutable() _isexecDir()