예제 #1
0
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
예제 #2
0
 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()