summaryrefslogtreecommitdiff
path: root/mock.py
diff options
context:
space:
mode:
Diffstat (limited to 'mock.py')
-rw-r--r--mock.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mock.py b/mock.py
index c33e46a..75a1959 100644
--- a/mock.py
+++ b/mock.py
@@ -314,6 +314,9 @@ def mocksignature(func, mock=None, skipfirst=False):
The mock is set as the `mock` attribute of the returned function for easy
access.
+ Functions returned by `mocksignature` have many of the same attributes
+ and assert methods as a mock object.
+
`mocksignature` can also be used with classes. It copies the signature of
the `__init__` method.