'request_latency only considers results which have the
\'scenario.metrics.call_durations\' property.
None is returned if no results match.'

def test_request_latency_no_matching_results(self):

    results = [{'scenario': {'name': 'test-scenario', 'type': 'test-scenario-type'}}, {'scenario': {'name': 'test-scenario', 'type': 'test-scenario-type', 'metrics': {}}}]
    latency_result = request_latency(results, 10)
    self.assertEqual(latency_result, None)
