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._checkSlaveaddress( 0 )
minimalmodbus._checkSlaveaddress( 1 )
minimalmodbus._checkSlaveaddress( 10 )
minimalmodbus._checkSlaveaddress( 247 )
def testKnownValues(self):
minimalmodbus._checkSlaveaddress( 0 )
minimalmodbus._checkSlaveaddress( 1 )
minimalmodbus._checkSlaveaddress( 10 )
minimalmodbus._checkSlaveaddress( 247 )
def testKnownValues(self):
minimalmodbus._checkSlaveaddress( 0 )
minimalmodbus._checkSlaveaddress( 1 )
minimalmodbus._checkSlaveaddress( 10 )
minimalmodbus._checkSlaveaddress( 247 )
def testNotIntegerInput(self):
for value in _NOT_INTERGERS:
self.assertRaises(TypeError, minimalmodbus._checkSlaveaddress, value)
def testKnownValues(self):
minimalmodbus._checkSlaveaddress( 0 )
minimalmodbus._checkSlaveaddress( 1 )
minimalmodbus._checkSlaveaddress( 10 )
minimalmodbus._checkSlaveaddress( 247 )