Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def testCorrectResponseRegisterAddress(self):
minimalmodbus._checkResponseRegisterAddress( '\x00\x2d\x00\x58', 45)
minimalmodbus._checkResponseRegisterAddress( '\x00\x18\x00\x01', 24)
minimalmodbus._checkResponseRegisterAddress( '\x00\x47\xff\x00', 71)
minimalmodbus._checkResponseRegisterAddress( '\x00\x48\x00\x01', 72)
def testCorrectResponseRegisterAddress(self):
minimalmodbus._checkResponseRegisterAddress( '\x00\x2d\x00\x58', 45)
minimalmodbus._checkResponseRegisterAddress( '\x00\x18\x00\x01', 24)
minimalmodbus._checkResponseRegisterAddress( '\x00\x47\xff\x00', 71)
minimalmodbus._checkResponseRegisterAddress( '\x00\x48\x00\x01', 72)
def testCorrectResponseRegisterAddress(self):
minimalmodbus._checkResponseRegisterAddress( '\x00\x2d\x00\x58', 45)
minimalmodbus._checkResponseRegisterAddress( '\x00\x18\x00\x01', 24)
minimalmodbus._checkResponseRegisterAddress( '\x00\x47\xff\x00', 71)
minimalmodbus._checkResponseRegisterAddress( '\x00\x48\x00\x01', 72)
def testCorrectResponseRegisterAddress(self):
minimalmodbus._checkResponseRegisterAddress( '\x00\x2d\x00\x58', 45)
minimalmodbus._checkResponseRegisterAddress( '\x00\x18\x00\x01', 24)
minimalmodbus._checkResponseRegisterAddress( '\x00\x47\xff\x00', 71)
minimalmodbus._checkResponseRegisterAddress( '\x00\x48\x00\x01', 72)
def testAddressNotInteger(self):
for value in _NOT_INTERGERS:
self.assertRaises(TypeError, minimalmodbus._checkResponseRegisterAddress, '\x00\x2d\x00\x58', value)