git://git.eng.unimelb.edu.au
/
python-guide.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6552756
)
Add mock library to testing page
author
Roger Barnes
<roger@mindsocket.com.au>
Tue, 18 Sep 2012 11:04:14 +0000
(21:04 +1000)
committer
Roger Barnes
<roger@mindsocket.com.au>
Tue, 18 Sep 2012 11:04:14 +0000
(21:04 +1000)
docs/writing/tests.rst
patch
|
blob
|
history
diff --git
a/docs/writing/tests.rst
b/docs/writing/tests.rst
index
12590b6
..
342b133
100644
(file)
--- a/
docs/writing/tests.rst
+++ b/
docs/writing/tests.rst
@@
-1,5
+1,5
@@
Testing Your Code
-=================
====
+=================
Testing your code is very important.
@@
-248,3
+248,17
@@
the need to change any other code.
`unittest2 <http://pypi.python.org/pypi/unittest2>`_
+mock
+----
+
+mock is a library for testing in Python.
+
+::
+
+ $ pip install mock
+
+It allows you to replace parts of your system under test with mock objects and
+make assertions about how they have been used.
+
+ `mock <http://www.voidspace.org.uk/python/mock/>`_
+