Example #1
0
 def test_capabilities(self):
     """
     Verify the FSM reports capabilities as expected. All states defined in this dict must
     also be defined in the protocol FSM.
     """
     driver = InstrumentDriver(self._got_data_event_callback)
     self.assert_capabilities(driver, self._capabilities)
Example #2
0
 def test_driver_schema(self):
     """
     get the driver schema and verify it is configured properly
     """
     driver = InstrumentDriver(self._got_data_event_callback)
     self.assert_driver_schema(driver, self._driver_parameters,
                               self._driver_capabilities)
Example #3
0
 def test_connect(self, initial_protocol_state=ProtocolState.COMMAND):
     """
     Verify we can initialize the driver.  Set up mock events for other tests.
     @param initial_protocol_state: target protocol state for driver
     @return: driver instance
     """
     driver = InstrumentDriver(self._got_data_event_callback)
     self.assert_initialize_driver(driver, initial_protocol_state)
     driver._protocol.set_init_params(antelope_startup_config)
     driver._protocol._init_params()
     return driver