diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-29 10:19:53 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-29 10:19:53 (GMT) |
commit | 0e90e99188d6fb54c3f5b31a0488318d9c38309d (patch) | |
tree | baeb9819ae83194653cd3c3d4760a6c19c787a4d /Doc/library/unittest.mock.rst | |
parent | 567eba1852ed89e5cf93dbce33f7e2ca73e8f05d (diff) | |
parent | fbc1c268031a9c8fad65f49c8381b6145bd66ffc (diff) | |
download | cpython-0e90e99188d6fb54c3f5b31a0488318d9c38309d.zip cpython-0e90e99188d6fb54c3f5b31a0488318d9c38309d.tar.gz cpython-0e90e99188d6fb54c3f5b31a0488318d9c38309d.tar.bz2 |
Issue #19795: Improved markup of True/False constants.
Diffstat (limited to 'Doc/library/unittest.mock.rst')
-rw-r--r-- | Doc/library/unittest.mock.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index d7efcf4..135abeb 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -298,11 +298,11 @@ the `new_callable` argument to `patch`. assert the mock has been called with the specified calls. The `mock_calls` list is checked for the calls. - If `any_order` is False (the default) then the calls must be + If `any_order` is false (the default) then the calls must be sequential. There can be extra calls before or after the specified calls. - If `any_order` is True then the calls can be in any order, but + If `any_order` is true then the calls can be in any order, but they must all appear in :attr:`mock_calls`. >>> mock = Mock(return_value=None) @@ -1200,7 +1200,7 @@ patch.dict `values` can be a dictionary of values to set in the dictionary. `values` can also be an iterable of `(key, value)` pairs. - If `clear` is True then the dictionary will be cleared before the new + If `clear` is true then the dictionary will be cleared before the new values are set. `patch.dict` can also be called with arbitrary keyword arguments to set |