def METHOD_NAME(self):
    """removes the test directory"""
    if os.path.exists(self.testdir):
        for dirpath, subdirs, filenames in os.walk(self.testdir, topdown=False):
            for name in filenames:
                os.remove(os.path.join(dirpath, name))
            for name in subdirs:
                os.rmdir(os.path.join(dirpath, name))
    if os.path.exists(self.testdir):
        os.rmdir(self.testdir)
    assert not os.path.exists(self.testdir)