def testBadChecksum(self): res = isvalid_checksum(b'\xb5b\x06\x01\x02\x00\xf0\x05\xfe\x15') self.assertFalse(res)
def testGoodChecksum(self): res = isvalid_checksum(b'\xb5b\x06\x01\x02\x00\xf0\x05\xfe\x16') self.assertTrue(res)