Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
24891672
Commit
24891672
authored
Apr 01, 2012
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix markup errors found by "make suspicious".
parent
3f4a1b30
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Doc/library/unittest.mock-examples.rst
Doc/library/unittest.mock-examples.rst
+1
-1
Doc/library/unittest.mock.rst
Doc/library/unittest.mock.rst
+3
-3
No files found.
Doc/library/unittest.mock-examples.rst
View file @
24891672
...
...
@@ -39,7 +39,7 @@ and attributes that allow you to make assertions about how it has been used.
Once the mock has been called its :attr:`~Mock.called` attribute is set to
`True`. More importantly we can use the :meth:`~Mock.assert_called_with` or
:meth`~Mock.assert_called_once_with` method to check that it was called with
:meth
:
`~Mock.assert_called_once_with` method to check that it was called with
the correct arguments.
This example tests that calling `ProductionClass().method` results in a call to
...
...
Doc/library/unittest.mock.rst
View file @
24891672
...
...
@@ -1712,9 +1712,9 @@ call
.. function:: call(*args, **kwargs)
`call` is a helper object for making simpler assertions, for comparing
with
:attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`,
:attr:`~Mock.mock_calls` and :attr:
`~Mock.method_calls`. `call` can also be
`call` is a helper object for making simpler assertions, for comparing
with
:attr:`~Mock.call_args`, :attr:`~Mock.call_args_list`,
:attr:`~Mock.mock_calls` and :attr:`~Mock.method_calls`. `call` can also be
used with :meth:`~Mock.assert_has_calls`.
>>> m = MagicMock(return_value=None)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment