def testGetTraceUrlLocal(self): test_result = testing.TestResult( 'benchmark/story', output_artifacts={'trace.html': testing.Artifact('trace.html')}, ) url = processor.GetTraceUrl(test_result) self.assertEqual(url, 'file://trace.html')
def testGetTraceUrlEmpty(self): test_result = testing.TestResult('benchmark/story') url = processor.GetTraceUrl(test_result) self.assertIsNone(url)