def make_test_file(): """Make and return the test file, finally it removes it. """ touch("stuff.txt") return "stuff.txt"
def make_dir_structure(): mkdir("testdir") touch("testdir/stuff.txt") mkdir("testdir/testdir2") touch("testdir/testdir2/stuff2.txt")
def test_file(self): """Testing the file removal""" touch("test.txt") self.assert_(os.path.exists("test.txt")) rm("test.txt")