'Test a request to an endpoint that returns a streaming response'

def test_streaming_response(self):

    s = HttpSession(('http://127.0.0.1:%i' % self.port))
    r = s.get('/streaming/30')
    self.assertGreater(global_stats.get('/streaming/30', method='GET').avg_response_time, 250)
    global_stats.clear_all()
    r = s.get('/streaming/30', stream=True)
    self.assertGreater(global_stats.get('/streaming/30', method='GET').avg_response_time, 0)
    self.assertLess(global_stats.get('/streaming/30', method='GET').avg_response_time, 250)
    _ = r.content
