@mock.patch('requests.adapters.HTTPAdapter.send', side_effect=requests.Timeout)
def test_requests_timeout_exception(self, *_, **__):
    with self.assertRaises(Exception):
        self.perform_request(self.URL)
    span = self.assert_span()
    self.assertEqual(span.status.status_code, StatusCode.ERROR)
@mock.patch('requests.adapters.HTTPAdapter.send', side_effect=requests.Timeout)
def test_requests_timeout_exception(self, *_, **__):
    with self.assertRaises(Exception):
        self.perform_request(self.URL)
    span = self.assert_span()
    self.assertEqual(span.status.status_code, StatusCode.ERROR)