diff options
| author | Michael Foord <michael@voidspace.org.uk> | 2012-04-13 19:51:20 (GMT) |
|---|---|---|
| committer | Michael Foord <michael@voidspace.org.uk> | 2012-04-13 19:51:20 (GMT) |
| commit | 0682a0c0a925c52bf4d8d3030681b82796bdc6e2 (patch) | |
| tree | 85a9641ea5b1383282ac196a8068bea31825c867 /Doc/library/unittest.mock-examples.rst | |
| parent | 656319e58d80478c7aa2a783606f0b50053529ae (diff) | |
| download | cpython-0682a0c0a925c52bf4d8d3030681b82796bdc6e2.zip cpython-0682a0c0a925c52bf4d8d3030681b82796bdc6e2.tar.gz cpython-0682a0c0a925c52bf4d8d3030681b82796bdc6e2.tar.bz2 | |
Minor docstring / docs corrections for unittest.mock
Diffstat (limited to 'Doc/library/unittest.mock-examples.rst')
| -rw-r--r-- | Doc/library/unittest.mock-examples.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/unittest.mock-examples.rst b/Doc/library/unittest.mock-examples.rst index d220bb3..0fc32d2 100644 --- a/Doc/library/unittest.mock-examples.rst +++ b/Doc/library/unittest.mock-examples.rst @@ -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() |
