You should do this in the ``cleanUp`` method (see that [same PyNAST example](https://github.com/qiime/pynast/blob/master/tests/test_logger.py)). Otherwise, if there is an error during execution of the test, this file will not be cleaned up.