コード例 #1
0
ファイル: test_nix.py プロジェクト: davidmiller/ffs
 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'))
コード例 #2
0
ファイル: test_nix.py プロジェクト: pombredanne/ffs-1
 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'))
コード例 #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()