Пример #1
0
 def testBadChecksum(self):
     res = isvalid_checksum(b'\xb5b\x06\x01\x02\x00\xf0\x05\xfe\x15')
     self.assertFalse(res)
Пример #2
0
 def testGoodChecksum(self):
     res = isvalid_checksum(b'\xb5b\x06\x01\x02\x00\xf0\x05\xfe\x16')
     self.assertTrue(res)