def test_suppress_http_instrumentation(self):
    token = context.attach(context.set_value(_SUPPRESS_HTTP_INSTRUMENTATION_KEY, True))
    try:
        result = self.perform_request(self.URL)
        self.assertEqual(result.text, 'Hello!')
    finally:
        context.detach(token)
    self.assert_span(num_spans=0)
def test_suppress_http_instrumentation(self):
    token = context.attach(context.set_value(_SUPPRESS_HTTP_INSTRUMENTATION_KEY, True))
    try:
        result = self.perform_request(self.URL)
        self.assertEqual(result.text, 'Hello!')
    finally:
        context.detach(token)
    self.assert_span(num_spans=0)