Commit 24891672 authored by Georg Brandl's avatar Georg Brandl

Fix markup errors found by "make suspicious".

parent 3f4a1b30
...@@ -39,7 +39,7 @@ and attributes that allow you to make assertions about how it has been used. ...@@ -39,7 +39,7 @@ and attributes that allow you to make assertions about how it has been used.
Once the mock has been called its :attr:`~Mock.called` attribute is set to Once the mock has been called its :attr:`~Mock.called` attribute is set to
`True`. More importantly we can use the :meth:`~Mock.assert_called_with` or `True`. More importantly we can use the :meth:`~Mock.assert_called_with` or
:meth`~Mock.assert_called_once_with` method to check that it was called with :meth:`~Mock.assert_called_once_with` method to check that it was called with
the correct arguments. the correct arguments.
This example tests that calling `ProductionClass().method` results in a call to This example tests that calling `ProductionClass().method` results in a call to
......
...@@ -1712,9 +1712,9 @@ call ...@@ -1712,9 +1712,9 @@ call
.. function:: call(*args, **kwargs) .. function:: call(*args, **kwargs)
`call` is a helper object for making simpler assertions, for comparing `call` is a helper object for making simpler assertions, for comparing with
with :attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`, :attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`,
:attr:`~Mock.mock_calls` and :attr: `~Mock.method_calls`. `call` can also be :attr:`~Mock.mock_calls` and :attr:`~Mock.method_calls`. `call` can also be
used with :meth:`~Mock.assert_has_calls`. used with :meth:`~Mock.assert_has_calls`.
>>> m = MagicMock(return_value=None) >>> m = MagicMock(return_value=None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment