(self)
| 870 | |
| 871 | class TestHowClientIsCreated(BaseAWSCommandParamsTest): |
| 872 | def setUp(self): |
| 873 | super().setUp() |
| 874 | self.endpoint_creator_patch = mock.patch( |
| 875 | 'botocore.args.EndpointCreator' |
| 876 | ) |
| 877 | self.endpoint_creator = self.endpoint_creator_patch.start() |
| 878 | self.create_endpoint = ( |
| 879 | self.endpoint_creator.return_value.create_endpoint |
| 880 | ) |
| 881 | self.endpoint = self.create_endpoint.return_value |
| 882 | self.endpoint.host = 'https://example.com' |
| 883 | # Have the endpoint give a dummy empty response. |
| 884 | http_response = AWSResponse(None, 200, {}, None) |
| 885 | self.endpoint.make_request.return_value = (http_response, {}) |
| 886 | |
| 887 | def tearDown(self): |
| 888 | super().tearDown() |
nothing calls this directly
no test coverage detected