summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/mock.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/unittest/mock.py')
-rw-r--r--Lib/unittest/mock.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/unittest/mock.py b/Lib/unittest/mock.py
index a4e571a..5be9120 100644
--- a/Lib/unittest/mock.py
+++ b/Lib/unittest/mock.py
@@ -1215,6 +1215,11 @@ class Mock(CallableMixin, NonCallableMock):
this is a new Mock (created on first access). See the
`return_value` attribute.
+ * `unsafe`: By default, accessing any attribute whose name starts with
+ *assert*, *assret*, *asert*, *aseert* or *assrt* will raise an
+ AttributeError. Passing `unsafe=True` will allow access to
+ these attributes.
+
* `wraps`: Item for the mock object to wrap. If `wraps` is not None then
calling the Mock will pass the call through to the wrapped object
(returning the real result). Attribute access on the mock will return a