diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-29 10:17:13 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-11-29 10:17:13 (GMT) |
commit | fbc1c268031a9c8fad65f49c8381b6145bd66ffc (patch) | |
tree | 61f0d5554573668c553dd9f39a50d74c12dd50bb /Doc/library/unittest.mock.rst | |
parent | 4b79518f83fa6c4dadd69326276032d74c8e3df7 (diff) | |
download | cpython-fbc1c268031a9c8fad65f49c8381b6145bd66ffc.zip cpython-fbc1c268031a9c8fad65f49c8381b6145bd66ffc.tar.gz cpython-fbc1c268031a9c8fad65f49c8381b6145bd66ffc.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 9494861..0243d7f 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -299,11 +299,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) @@ -1180,7 +1180,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 |