def test_with_path(self): "Should work with Path objects" nix.chmod(Path(self.tname), 644) self.assertEqual(33412, os.stat(self.tname).st_mode)
def test_chmod(self): "Should change mode" nix.chmod(self.tname, 644) self.assertEqual(33412, os.stat(self.tname).st_mode)