예제 #1
0
 def test_extract_no_response(self):
     driver = UnipiDALIDriver()
     self.assertEqual(driver.extract([0x1111]), DALI_NO_RESPONSE)
예제 #2
0
 def test_extract_backward_frame(self):
     driver = UnipiDALIDriver()
     frame = driver.extract([0x100, 0x11])
     self.assertIsInstance(frame, BackwardFrame)
     self.assertEqual(frame.as_integer, 17)