def test_mkdirp_path(self): "Should accept Path objects" p = Path(self.nopath) + 'some/long/structure' nix.mkdir_p(p) self.assertTrue(os.path.isdir(self.nopath + '/some/long/structure'))
def setUp(self): self.tfile = tempfile.mktemp() self.tdir = tempfile.mkdtemp() nix.touch(self.tfile) nix.mkdir_p(self.tdir) self.fs = filesystem.DiskFilesystem()