def test_get_required_headers(self): service = mock.Mock() service.required_headers = {"one": "two"} endpoint = mock.Mock() endpoint.required_headers = {"foo": "bar"} expected_headers = {} expected_headers.update(service.required_headers) expected_headers.update(endpoint.required_headers) assert expected_headers == ServiceCaller.get_required_headers( service, endpoint)
def test_get_required_headers(self): service = mock.Mock() service.required_headers = {'one': 'two'} endpoint = mock.Mock() endpoint.required_headers = {'foo': 'bar'} expected_headers = {} expected_headers.update(service.required_headers) expected_headers.update(endpoint.required_headers) assert expected_headers == ServiceCaller.get_required_headers( service, endpoint)