File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2653,9 +2653,9 @@ with any methods on the mock:
2653
2653
2654
2654
.. code-block :: pycon
2655
2655
2656
- >>> mock.has_data ()
2656
+ >>> mock.header_items ()
2657
2657
<mock.Mock object at 0x...>
2658
- >>> mock.has_data .assret_called_with() # Intentional typo!
2658
+ >>> mock.header_items .assret_called_with() # Intentional typo!
2659
2659
2660
2660
Auto-speccing solves this problem. You can either pass ``autospec=True `` to
2661
2661
: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 @@ -1076,7 +1076,7 @@ HTTPHandler Objects
1076
1076
.. method :: HTTPHandler.http_open(req)
1077
1077
1078
1078
Send an HTTP request, which can be either GET or POST, depending on
1079
- ``req.has_data() ``.
1079
+ ``req.data ``.
1080
1080
1081
1081
1082
1082
.. _https-handler-objects :
@@ -1088,7 +1088,7 @@ HTTPSHandler Objects
1088
1088
.. method :: HTTPSHandler.https_open(req)
1089
1089
1090
1090
Send an HTTPS request, which can be either GET or POST, depending on
1091
- ``req.has_data() ``.
1091
+ ``req.data ``.
1092
1092
1093
1093
1094
1094
.. _file-handler-objects :
You can’t perform that action at this time.
0 commit comments