예제 #1
0
 def test_reserved_pins(self):
     reserved_pins = set(get_reserved_pins())
     self.assertEqual(set(RESERVED_PINS), reserved_pins)
예제 #2
0
 def test_interrupt_pins_are_reserved(self):
     reserved_pins = set(get_reserved_pins())
     interrupt_pins = set(get_interrupt_pins())
     self.assertTrue(interrupt_pins <= reserved_pins)
예제 #3
0
 def test_get_reserved_pins(self):
     s = get_reserved_pins()
     self._assert_is_list_of_ints(s)
예제 #4
0
 def test_actuation_pins_not_reserved(self):
     reserved_pins = set(get_reserved_pins())
     self.assertFalse(self._pin_config.HEX_actuation_pin in reserved_pins)
     self.assertFalse(self._pin_config.HLT_actuation_pin in reserved_pins)
예제 #5
0
 def get_reserved_pins(self):
     return get_reserved_pins()