From f5143327b243fc616f37252d76bd31f2690b088d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 16 Mar 2020 18:51:27 +0000 Subject: Move tests to be organized within the source directory. This should simplify maintaining the tests in the long run, and allows mypy to more thoroughly check for types. --- test/test_lifescan.py | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100755 test/test_lifescan.py (limited to 'test/test_lifescan.py') 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)) -- cgit v1.2.3