コード例 #1
0
ファイル: test_path.py プロジェクト: jaraco/path.py
 def test_next_class(self):
     """
     It should be possible to invoke operations on a TempDir and get
     Path classes.
     """
     d = TempDir()
     sub = d / 'subdir'
     assert isinstance(sub, path.Path)
     d.rmdir()
コード例 #2
0
ファイル: test_path.py プロジェクト: louis-ng/path
 def test_next_class(self):
     """
     It should be possible to invoke operations on a TempDir and get
     Path classes.
     """
     d = TempDir()
     sub = d / 'subdir'
     assert isinstance(sub, path.Path)
     d.rmdir()
コード例 #3
0
ファイル: test_path.py プロジェクト: jaraco/path.py
 def test_constructor(self):
     """
     One should be able to readily construct a temporary directory
     """
     d = TempDir()
     assert isinstance(d, path.Path)
     assert d.exists()
     assert d.isdir()
     d.rmdir()
     assert not d.exists()
コード例 #4
0
ファイル: test_path.py プロジェクト: louis-ng/path
 def test_constructor(self):
     """
     One should be able to readily construct a temporary directory
     """
     d = TempDir()
     assert isinstance(d, path.Path)
     assert d.exists()
     assert d.isdir()
     d.rmdir()
     assert not d.exists()