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()
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()