diff options
Diffstat (limited to 'test/test_lifescan.py')
-rwxr-xr-x | test/test_lifescan.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/test/test_lifescan.py b/test/test_lifescan.py deleted file mode 100755 index b50b5d6..0000000 --- a/test/test_lifescan.py +++ /dev/null @@ -1,20 +0,0 @@ -# -*- coding: utf-8 -*- -# -# SPDX-License-Identifier: MIT -"""Tests for the LifeScan OneTouch Ultra Mini driver.""" - -# pylint: disable=protected-access,missing-docstring - -import array - -from absl.testing import absltest -from glucometerutils.support import lifescan - - -class TestChecksum(absltest.TestCase): - def test_crc(self): - self.assertEqual(0x41CD, lifescan.crc_ccitt(b"\x02\x06\x06\x03")) - - def test_crc_array(self): - cmd_array = array.array("B", b"\x02\x06\x08\x03") - self.assertEqual(0x62C2, lifescan.crc_ccitt(cmd_array)) |