def setUp(self):
    super().setUp()
    self.env_patch = mock.patch.dict('os.environ', {'OTEL_PYTHON_REQUESTS_EXCLUDED_URLS': 'http://localhost/env_excluded_arg/123,env_excluded_noarg'})
    self.env_patch.start()
    self.exclude_patch = mock.patch('opentelemetry.instrumentation.requests._excluded_urls_from_env', get_excluded_urls('REQUESTS'))
    self.exclude_patch.start()
    RequestsInstrumentor().instrument()
    httpretty.enable()
    httpretty.register_uri(httpretty.GET, self.URL, body='Hello!')
def setUp(self):
    super().setUp()
    self.env_patch = mock.patch.dict('os.environ', {'OTEL_PYTHON_REQUESTS_EXCLUDED_URLS': 'http://localhost/env_excluded_arg/123,env_excluded_noarg'})
    self.env_patch.start()
    self.exclude_patch = mock.patch('opentelemetry.instrumentation.requests._excluded_urls_from_env', get_excluded_urls('REQUESTS'))
    self.exclude_patch.start()
    RequestsInstrumentor().instrument()
    httpretty.enable()
    httpretty.register_uri(httpretty.GET, self.URL, body='Hello!')