Esempio n. 1
0
 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'))
Esempio n. 2
0
 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'))
Esempio n. 3
0
 def setUp(self):
     self.tfile = tempfile.mktemp()
     self.tdir = tempfile.mkdtemp()
     nix.touch(self.tfile)
     nix.mkdir_p(self.tdir)
     self.fs = filesystem.DiskFilesystem()