Minor docstring / docs corrections for unittest.mock

This commit is contained in:
Michael Foord 2012-04-13 20:51:20 +01:00
parent 656319e58d
commit 0682a0c0a9
3 changed files with 11 additions and 11 deletions

View file

@ -99,7 +99,7 @@ by looking at the return value of the mocked class.
In the example below we have a function `some_function` that instantiates `Foo`
and calls a method on it. The call to `patch` replaces the class `Foo` with a
mock. The `Foo` instance is the result of calling the mock, so it is configured
by modify the mock :attr:`~Mock.return_value`.
by modifying the mock :attr:`~Mock.return_value`.
>>> def some_function():
... instance = module.Foo()