def test_repeated_prios(self): prio_list = [ stats.PrioEvent(0, 0), stats.PrioEvent(0, 1), stats.PrioEvent(0, 0), stats.PrioEvent(0, 1) ] result = format_utils.format_prio_list(prio_list) self.assertEqual(result, '[0 (2 times), 1 (2 times)]')
def test_multiple_prios(self): prio_list = [stats.PrioEvent(0, 0), stats.PrioEvent(0, 1)] result = format_utils.format_prio_list(prio_list) self.assertEqual(result, '[0, 1]')
def test_one_prio(self): prio_list = [stats.PrioEvent(0, 0)] result = format_utils.format_prio_list(prio_list) self.assertEqual(result, '[0]')