def METHOD_NAME(self, requests_mock):
    telemetry = Telemetry(url=self.url)
    requests_mock.exceptions.Timeout = requests.exceptions.Timeout
    requests_mock.exceptions.ConnectionError = requests.exceptions.ConnectionError
    requests_mock.post.side_effect = requests.exceptions.ConnectionError()
    telemetry.emit(self.metric_mock)