File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2654,9 +2654,9 @@ with any methods on the mock:
2654
2654
2655
2655
.. code-block :: pycon
2656
2656
2657
- >>> mock.has_data ()
2657
+ >>> mock.header_items ()
2658
2658
<mock.Mock object at 0x...>
2659
- >>> mock.has_data .assret_called_with() # Intentional typo!
2659
+ >>> mock.header_items .assret_called_with() # Intentional typo!
2660
2660
2661
2661
Auto-speccing solves this problem. You can either pass ``autospec=True `` to
2662
2662
:func: `patch ` / :func: `patch.object ` or use the :func: `create_autospec ` function to create a
Original file line number Diff line number Diff line change @@ -1121,7 +1121,7 @@ HTTPHandler Objects
1121
1121
.. method :: HTTPHandler.http_open(req)
1122
1122
1123
1123
Send an HTTP request, which can be either GET or POST, depending on
1124
- ``req.has_data() ``.
1124
+ ``req.data ``.
1125
1125
1126
1126
1127
1127
.. _https-handler-objects :
@@ -1133,7 +1133,7 @@ HTTPSHandler Objects
1133
1133
.. method :: HTTPSHandler.https_open(req)
1134
1134
1135
1135
Send an HTTPS request, which can be either GET or POST, depending on
1136
- ``req.has_data() ``.
1136
+ ``req.data ``.
1137
1137
1138
1138
1139
1139
.. _file-handler-objects :
You can’t perform that action at this time.
0 commit comments