@mock.patch('requests.adapters.HTTPAdapter.send', side_effect=InvalidResponseObjectException)
def test_requests_exception_without_proper_response_type(self, *_, **__):
    with self.assertRaises(InvalidResponseObjectException):
        self.perform_request(self.URL)
    span = self.assert_span()
    self.assertEqual(span.attributes, {SpanAttributes.HTTP_METHOD: 'GET', SpanAttributes.HTTP_URL: self.URL})
    self.assertEqual(span.status.status_code, StatusCode.ERROR)
@mock.patch('requests.adapters.HTTPAdapter.send', side_effect=InvalidResponseObjectException)
def test_requests_exception_without_proper_response_type(self, *_, **__):
    with self.assertRaises(InvalidResponseObjectException):
        self.perform_request(self.URL)
    span = self.assert_span()
    self.assertEqual(span.attributes, {SpanAttributes.HTTP_METHOD: 'GET', SpanAttributes.HTTP_URL: self.URL})
    self.assertEqual(span.status.status_code, StatusCode.ERROR)