mock-file-tree (pypi): A simple interface to mock the os module with a virtual file tree.
Keywords: files|mock|testing