def setUp(self): """ Calls VadcpTestCase.setUp(self), creates and assigns the VadcpDriver instance, and assign the comm_config object. """ ReceiverBuilder.use_greenlets() VadcpTestCase.setUp(self) def evt_callback(event): log.info("CALLBACK: %s" % str(event)) # needed by DriverTestMixin self.driver = VadcpDriver(evt_callback) self.comms_config = self._conn_config
def setUp(self): """ Calls VadcpTestCase.setUp(self), creates and assigns the a proxy for the driver that relies on the ZmqDriverClient object created by the DriverIntegrationTestSupport, and assigns the comms_config object. """ VadcpTestCase.setUp(self) # needed by DriverTestMixin self.driver = VadcpDriverProxy(self._conn_config) self.comms_config = self.driver.comms_config def cleanup(): self.driver._support.stop_pagent() self.driver._support.stop_driver() self.addCleanup(cleanup)