diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2016-02-13 01:08:32 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2016-02-13 01:08:32 +0100 |
commit | f507bb35dcd72a147f4f795464e034dfac929d05 (patch) | |
tree | 85e12c5fd61b88f02c7dfc9184fc0789cdbe6014 /test | |
parent | Update documentation, reference the new glucometer-protocols repository. (diff) | |
download | glucometerutils-f507bb35dcd72a147f4f795464e034dfac929d05.tar glucometerutils-f507bb35dcd72a147f4f795464e034dfac929d05.tar.gz glucometerutils-f507bb35dcd72a147f4f795464e034dfac929d05.tar.bz2 glucometerutils-f507bb35dcd72a147f4f795464e034dfac929d05.tar.lz glucometerutils-f507bb35dcd72a147f4f795464e034dfac929d05.tar.xz glucometerutils-f507bb35dcd72a147f4f795464e034dfac929d05.tar.zst glucometerutils-f507bb35dcd72a147f4f795464e034dfac929d05.zip |
Diffstat (limited to 'test')
-rw-r--r-- | test/test_otultraeasy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_otultraeasy.py b/test/test_otultraeasy.py index 326aeea..f263f12 100644 --- a/test/test_otultraeasy.py +++ b/test/test_otultraeasy.py @@ -31,12 +31,12 @@ class TestOTUltraMini(unittest.TestCase): def testCrc(self): self.assertEqual( 0x41cd, - otultraeasy._Packet._crc(b'\x02\x06\x06\x03')) + lifescan_common.crc_ccitt(b'\x02\x06\x06\x03')) cmd_array = array.array('B', b'\x02\x06\x08\x03') self.assertEqual( 0x62C2, - otultraeasy._Packet._crc(cmd_array)) + lifescan_common.crc_ccitt(cmd_array)) def testPacketUpdateChecksum(self): packet = otultraeasy._Packet() |