openbsd-ports/devel/py-mock/pkg/DESCR
eric c39f5dc168 mock is a Python module that provides a core Mock class. It removes
the need to create a host of stubs throughout your test suite. After
performing an action, you can make assertions about which methods /
attributes were used and arguments they were called with. You can also
specify return values and set needed attributes in the normal way. 

The mock module also provides utility functions / objects to assist
with testing, particularly monkey patching. 

ok ajacoutot@
2011-04-18 15:10:14 +00:00

9 lines
458 B
Plaintext

mock is a Python module that provides a core Mock class. It removes
the need to create a host of stubs throughout your test suite. After
performing an action, you can make assertions about which methods /
attributes were used and arguments they were called with. You can also
specify return values and set needed attributes in the normal way.
The mock module also provides utility functions / objects to assist
with testing, particularly monkey patching.