Ejemplo n.º 1
0
def make_test_file():
    """Make and return the test file, finally it removes it.

    """
    
    touch("stuff.txt")
    return "stuff.txt"
Ejemplo n.º 2
0
def make_dir_structure():
    mkdir("testdir")
    touch("testdir/stuff.txt")
    mkdir("testdir/testdir2")
    touch("testdir/testdir2/stuff2.txt")
Ejemplo n.º 3
0
 def test_file(self):
     """Testing the file removal"""
     touch("test.txt")
     self.assert_(os.path.exists("test.txt"))
     rm("test.txt")