From b96b11fe59d6fd761f0a96a34c968f29bbff0cf9 Mon Sep 17 00:00:00 2001 From: Roger Barnes Date: Tue, 18 Sep 2012 21:04:14 +1000 Subject: [PATCH] Add mock library to testing page --- docs/writing/tests.rst | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/writing/tests.rst b/docs/writing/tests.rst index 12590b6..342b133 100644 --- 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 `_ +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 `_ + -- 1.8.0.2