Exemple #1
0
 def test_on_examples(self):
     for code, name_list in EXAMPLES:
         self.assertEqual(set(name_list), set(bytes2_alarm_names(code)))
Exemple #2
0
 def test_on_examples(self):
     for code, name_list in EXAMPLES:
         self.assertEqual(set(name_list), set(bytes2_alarm_names(code)))
Exemple #3
0
 def test_involution_bytes(self):
     for r in range(127):
         self.assertEqual(alarm_names_2bytes(bytes2_alarm_names(r)), r)
Exemple #4
0
 def test_involution_bytes(self):
     for r in range(127):
         self.assertEqual(alarm_names_2bytes(bytes2_alarm_names(r)), r)