class BasicSerialSetup(unittest.TestCase): def setUp(self): self.channels = 8 self.port = COM_PORT history = 100 self.dataSource = SerialDataSource(self.port, self.channels) # self.dataSource = DummySerialDataSource(self.port, self.channels) self.dataSource.open() def tearDown(self): # print "closing connection" self.dataSource.close() del self.dataSource
def setUp(self): self.channels = 8 self.port = COM_PORT history = 100 self.dataSource = SerialDataSource(self.port, self.channels) # self.dataSource = DummySerialDataSource(self.port, self.channels) self.dataSource.open()