summaryrefslogtreecommitdiffstats
path: root/test/test_lifescan.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_lifescan.py')
-rwxr-xr-xtest/test_lifescan.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/test/test_lifescan.py b/test/test_lifescan.py
index 3dc0aa6..b50b5d6 100755
--- a/test/test_lifescan.py
+++ b/test/test_lifescan.py
@@ -8,18 +8,13 @@
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'))
+ 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))
+ cmd_array = array.array("B", b"\x02\x06\x08\x03")
+ self.assertEqual(0x62C2, lifescan.crc_ccitt(cmd_array))