Testpath is a collection of utilities for testing code which uses and manipulates the filesystem and system commands.
Install it with:
pip install testpath
Contents: