We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af5799f commit ac613d0Copy full SHA for ac613d0
Doc/library/unittest.mock.rst
@@ -2654,9 +2654,9 @@ with any methods on the mock:
2654
2655
.. code-block:: pycon
2656
2657
- >>> mock.has_data()
+ >>> mock.header_items()
2658
<mock.Mock object at 0x...>
2659
- >>> mock.has_data.assret_called_with() # Intentional typo!
+ >>> mock.header_items.assret_called_with() # Intentional typo!
2660
2661
Auto-speccing solves this problem. You can either pass ``autospec=True`` to
2662
:func:`patch` / :func:`patch.object` or use the :func:`create_autospec` function to create a
0 commit comments