The safest way to clean up directories like this is to use `self.addCleanup` right after the statement in setUp that create the directory:
```
os.mkdir(some_dir)
self.addCleanup(shutil.rmtree, some_dir)
```