Skip to content

Commit b96b11f

Browse files
committed
Add mock library to testing page
1 parent 6552756 commit b96b11f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/writing/tests.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Testing Your Code
2-
=====================
2+
=================
33

44
Testing your code is very important.
55

@@ -248,3 +248,17 @@ the need to change any other code.
248248
`unittest2 <http://pypi.python.org/pypi/unittest2>`_
249249

250250

251+
mock
252+
----
253+
254+
mock is a library for testing in Python.
255+
256+
::
257+
258+
$ pip install mock
259+
260+
It allows you to replace parts of your system under test with mock objects and
261+
make assertions about how they have been used.
262+
263+
`mock <http://www.voidspace.org.uk/python/mock/>`_
264+

0 commit comments

Comments
 (0)