def test_register_event_time(self):
     perf_metric = PerfMetric(name)
     perf_metric.register_event_time(event_name, t_tag, event_begin)
     self.assertEqual(tagged_event_repr, perf_metric.__repr__())
 def test_register_event_time(self):
     perf_metric = PerfMetric(name)
     perf_metric.register_event_time(event_name, t_tag, event_begin)
     self.assertEqual(tagged_event_repr, perf_metric.__repr__())
 def test_deregister_event(self):
     perf_metric = PerfMetric(name)
     perf_metric.register_event_time(event_name, t_tag, event_begin)
     perf_metric.deregister_event(event_name)
     self.assertEqual(expected_repr, perf_metric.__repr__())
 def test_deregister_event(self):
     perf_metric = PerfMetric(name)
     perf_metric.register_event_time(event_name, t_tag, event_begin)
     perf_metric.deregister_event(event_name)
     self.assertEqual(expected_repr, perf_metric.__repr__())