15 lines
442 B
ReStructuredText
15 lines
442 B
ReStructuredText
|
Testpath is a collection of utilities for Python code working with files and commands.
|
||
|
|
||
|
It contains functions to check things on the filesystem, and tools for mocking
|
||
|
system commands and recording calls to those.
|
||
|
|
||
|
`Documentation on ReadTheDocs <http://testpath.readthedocs.org/en/latest/>`_
|
||
|
|
||
|
e.g.::
|
||
|
|
||
|
import testpath
|
||
|
testpath.assert_isfile(path)
|
||
|
|
||
|
with testpath.assert_calls('git', ['add', path]):
|
||
|
function_under_test()
|