def test_adapter_with_custom_response(self):
    response = Response()
    response.status_code = 210
    response.reason = 'hello adapter'
    response.raw = TransportMock()
    session = requests.Session()
    session.mount(self.URL, MyAdapter(response))
    self.perform_request(self.URL, session)
    span = self.assert_span()
    self.assertEqual(span.attributes, {'http.method': 'GET', 'http.url': self.URL, 'http.status_code': 210})
def test_adapter_with_custom_response(self):
    response = Response()
    response.status_code = 210
    response.reason = 'hello adapter'
    response.raw = TransportMock()
    session = requests.Session()
    session.mount(self.URL, MyAdapter(response))
    self.perform_request(self.URL, session)
    span = self.assert_span()
    self.assertEqual(span.attributes, {'http.method': 'GET', 'http.url': self.URL, 'http.status_code': 210})