def test_on_examples(self): for code, name_list in EXAMPLES: self.assertEqual(set(name_list), set(bytes2_alarm_names(code)))
def test_involution_bytes(self): for r in range(127): self.assertEqual(alarm_names_2bytes(bytes2_alarm_names(r)), r)