Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def testKnownValues(self):
minimalmodbus._checkRegisteraddress( 0 )
minimalmodbus._checkRegisteraddress( 1 )
minimalmodbus._checkRegisteraddress( 10 )
minimalmodbus._checkRegisteraddress( 65535 )
def testKnownValues(self):
minimalmodbus._checkRegisteraddress( 0 )
minimalmodbus._checkRegisteraddress( 1 )
minimalmodbus._checkRegisteraddress( 10 )
minimalmodbus._checkRegisteraddress( 65535 )
def testKnownValues(self):
minimalmodbus._checkRegisteraddress( 0 )
minimalmodbus._checkRegisteraddress( 1 )
minimalmodbus._checkRegisteraddress( 10 )
minimalmodbus._checkRegisteraddress( 65535 )
def testKnownValues(self):
minimalmodbus._checkRegisteraddress( 0 )
minimalmodbus._checkRegisteraddress( 1 )
minimalmodbus._checkRegisteraddress( 10 )
minimalmodbus._checkRegisteraddress( 65535 )
def testWrongType(self):
for value in _NOT_INTERGERS:
self.assertRaises(TypeError, minimalmodbus._checkRegisteraddress, value)