diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2018-01-01 02:16:29 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2018-01-01 02:24:48 +0100 |
commit | 0af0315dba3590ff5a975783cf8f7bc13460a5f2 (patch) | |
tree | ee9ef3569ad32e20243bd18904607d01c62017d7 /test | |
parent | sdcodefree: rewrite using construct and improve readability. (diff) | |
download | glucometerutils-0af0315dba3590ff5a975783cf8f7bc13460a5f2.tar glucometerutils-0af0315dba3590ff5a975783cf8f7bc13460a5f2.tar.gz glucometerutils-0af0315dba3590ff5a975783cf8f7bc13460a5f2.tar.bz2 glucometerutils-0af0315dba3590ff5a975783cf8f7bc13460a5f2.tar.lz glucometerutils-0af0315dba3590ff5a975783cf8f7bc13460a5f2.tar.xz glucometerutils-0af0315dba3590ff5a975783cf8f7bc13460a5f2.tar.zst glucometerutils-0af0315dba3590ff5a975783cf8f7bc13460a5f2.zip |
Diffstat (limited to '')
-rw-r--r-- | test/test_otultraeasy.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/test_otultraeasy.py b/test/test_otultraeasy.py index a1d4c02..52a98f1 100644 --- a/test/test_otultraeasy.py +++ b/test/test_otultraeasy.py @@ -38,23 +38,6 @@ class TestOTUltraMini(unittest.TestCase): 0x62C2, lifescan.crc_ccitt(cmd_array)) - def test_packet_update_checksum(self): - packet = otultraeasy._Packet() - - packet.build_command('') - packet.disconnect = True - - packet.update_checksum() - self.assertEqual( - b'\x02\x06\x08\x03\xC2\x62', - packet.tobytes()) - - packet.validate_checksum() - packet.disconnect = False - - with self.assertRaises(exceptions.InvalidChecksum): - packet.validate_checksum() - if __name__ == '__main__': unittest.main() |