예제 #1
0
class AsynchronousAsciiClient(Runner, unittest.TestCase):
    '''
    These are the integration tests for the asynchronous
    serial ascii client.
    '''
    def setUp(self):
        ''' Initializes the test environment '''
        super(Runner, self).setUp()
        self.client = ModbusClient(method='ascii')

    def tearDown(self):
        ''' Cleans up the test environment '''
        self.client.close()
        self.shutdown()
예제 #2
0
class AsynchronousRtuClient(Runner, unittest.TestCase):
    """
    These are the integration tests for the asynchronous
    serial rtu client.
    """
    def setUp(self):
        """ Initializes the test environment """
        super(Runner, self).setUp()
        self.client = ModbusClient(method='rtu')

    def tearDown(self):
        """ Cleans up the test environment """
        self.client.close()
        super(Runner, self).tearDown()
class AsynchronousRtuClient(Runner, unittest.TestCase):
    '''
    These are the integration tests for the asynchronous
    serial rtu client.
    '''

    def setUp(self):
        ''' Initializes the test environment '''
        super(Runner, self).setUp()
        self.client = ModbusClient(method='rtu')

    def tearDown(self):
        ''' Cleans up the test environment '''
        self.client.close()
        super(Runner, self).tearDown()
class AsynchronousAsciiClient(Runner, unittest.TestCase):
    """
    These are the integration tests for the asynchronous
    serial ascii client.
    """

    def setUp(self):
        """ Initializes the test environment """
        super(Runner, self).setUp()
        self.client = ModbusClient(method='ascii')

    def tearDown(self):
        """ Cleans up the test environment """
        self.client.close()
        self.shutdown()
예제 #5
0
 def setUp(self):
     ''' Initializes the test environment '''
     super(Runner, self).setUp()
     self.client = ModbusClient(method='ascii')
 def setUp(self):
     ''' Initializes the test environment '''
     super(Runner, self).setUp()
     self.client = ModbusClient(method='rtu')
예제 #7
0
 def setUp(self):
     """ Initializes the test environment """
     super(Runner, self).setUp()
     self.client = ModbusClient(method='rtu')
 def setUp(self):
     """ Initializes the test environment """
     super(Runner, self).setUp()
     self.client = ModbusClient(method='ascii')