def test_event_lifetime(self): perf_metric = PerfMetric(name) perf_metric.event_start(event_name, event_begin) perf_metric.event_end(event_name, event_end) self.assertEqual( 1000, perf_metric.event_lifetime(event_name, check_active_event=True))
def test_event_lifetime(self): perf_metric = PerfMetric(name) perf_metric.event_start(event_name, event_begin) perf_metric.event_end(event_name, event_end) self.assertEqual( 1000, perf_metric.event_lifetime( event_name, check_active_event=True))
def test_event_start(self): perf_metric = PerfMetric(name) perf_metric.event_start(event_name, event_begin) self.assertEqual(event_begin_repr, perf_metric.__repr__())
def test_event_start(self): perf_metric = PerfMetric(name) perf_metric.event_start(event_name, event_begin) self.assertEqual(event_begin_repr, perf_metric.__repr__())