summaryrefslogtreecommitdiffstats
path: root/Doc/library/unittest.mock.rst
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-06-11 19:02:54 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-06-11 19:02:54 (GMT)
commitfa089b9b0b926c04e5d57812b7d7653472787965 (patch)
tree8dc5960aa04533868f942b0e325df1048ef05999 /Doc/library/unittest.mock.rst
parentc92bf83a829956e683a3d6bb1ae65aed74d7b92a (diff)
downloadcpython-fa089b9b0b926c04e5d57812b7d7653472787965.zip
cpython-fa089b9b0b926c04e5d57812b7d7653472787965.tar.gz
cpython-fa089b9b0b926c04e5d57812b7d7653472787965.tar.bz2
Issue #22558: Add remaining doc links to source code for Python-coded modules.
Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
Diffstat (limited to 'Doc/library/unittest.mock.rst')
-rw-r--r--Doc/library/unittest.mock.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index 929cead..5c9177a 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -4,11 +4,16 @@
.. module:: unittest.mock
:synopsis: Mock object library.
+
.. moduleauthor:: Michael Foord <michael@python.org>
.. currentmodule:: unittest.mock
.. versionadded:: 3.3
+**Source code:** :source:`Lib/unittest/mock.py`
+
+--------------
+
:mod:`unittest.mock` is a library for testing in Python. It allows you to
replace parts of your system under test with mock objects and make assertions
about how they have been used.
@@ -32,8 +37,6 @@ used by many mocking frameworks.
There is a backport of :mod:`unittest.mock` for earlier versions of Python,
available as `mock on PyPI <https://pypi.python.org/pypi/mock>`_.
-**Source code:** :source:`Lib/unittest/mock.py`
-
Quick Guide
-----------