]> granicus.if.org Git - python/commitdiff
Fix markup errors found by "make suspicious".
authorGeorg Brandl <georg@python.org>
Sun, 1 Apr 2012 11:48:26 +0000 (13:48 +0200)
committerGeorg Brandl <georg@python.org>
Sun, 1 Apr 2012 11:48:26 +0000 (13:48 +0200)
Doc/library/unittest.mock-examples.rst
Doc/library/unittest.mock.rst

index a561fdc760a23972f76d28cdf2d15e8a8bc29f14..d220bb34eadb26c7b6db63309ac206b9ed82823f 100644 (file)
@@ -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
 `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.
 
 This example tests that calling `ProductionClass().method` results in a call to
index df03164e106019ae802a6f36e5640babbdd1ad59..df1c41fae8c7526bac21006cc5c47ff5220dbcf9 100644 (file)
@@ -1712,9 +1712,9 @@ call
 
 .. function:: call(*args, **kwargs)
 
-    `call` is a helper object for making simpler assertions, for comparing
-    with :attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`,
-    :attr:`~Mock.mock_calls` and :attr: `~Mock.method_calls`. `call` can also be
+    `call` is a helper object for making simpler assertions, for comparing with
+    :attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`,
+    :attr:`~Mock.mock_calls` and :attr:`~Mock.method_calls`. `call` can also be
     used with :meth:`~Mock.assert_has_calls`.
 
         >>> m = MagicMock(return_value=None)