def test_uninstrument_session(self):
    session1 = requests.Session()
    RequestsInstrumentor().uninstrument_session(session1)
    result = self.perform_request(self.URL, session1)
    self.assertEqual(result.text, 'Hello!')
    self.assert_span(num_spans=0)
    session2 = requests.Session()
    result = self.perform_request(self.URL, session2)
    self.assertEqual(result.text, 'Hello!')
    self.assert_span()
    self.memory_exporter.clear()
    result = self.perform_request(self.URL)
    self.assertEqual(result.text, 'Hello!')
    self.assert_span()
def test_uninstrument_session(self):
    session1 = requests.Session()
    RequestsInstrumentor().uninstrument_session(session1)
    result = self.perform_request(self.URL, session1)
    self.assertEqual(result.text, 'Hello!')
    self.assert_span(num_spans=0)
    session2 = requests.Session()
    result = self.perform_request(self.URL, session2)
    self.assertEqual(result.text, 'Hello!')
    self.assert_span()
    self.memory_exporter.clear()
    result = self.perform_request(self.URL)
    self.assertEqual(result.text, 'Hello!')
    self.assert_span()