Ejemplo n.º 1
0
 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()
Ejemplo n.º 2
0
 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()
Ejemplo n.º 3
0
 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()
Ejemplo n.º 4
0
 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()