

def test_get_latency_60s(self):
    inst = instance.Instance(self.request_data, 'name', self.proxy, max_concurrent_requests=5)
    now = time.time()
    inst._request_history = [(now, (now + 1)), ((now + 2), (now + 4))]
    self.assertEqual(1.5, inst.get_latency_60s())

dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/instance_test.py TestInstance.test_get_latency_60s/original