diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_otultra2.py | 8 | ||||
-rw-r--r-- | test/test_otultraeasy.py | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/test/test_otultra2.py b/test/test_otultra2.py index 34078e3..3099604 100644 --- a/test/test_otultra2.py +++ b/test/test_otultra2.py @@ -14,8 +14,8 @@ import mock sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) -from glucometerutils.drivers import lifescan_common from glucometerutils.drivers import otultra2 +from glucometerutils.support import lifescan from glucometerutils import exceptions class TestOTUltra2(unittest.TestCase): @@ -41,7 +41,7 @@ class TestOTUltra2(unittest.TestCase): def test_missing_checksum(self): self._set_return_string('INVALID') - self.assertRaises(lifescan_common.MissingChecksum, + self.assertRaises(lifescan.MissingChecksum, self.device.get_serial_number) def test_short_response(self): @@ -59,7 +59,7 @@ class TestOTUltra2(unittest.TestCase): def test_invalid_serial_number(self): self._set_return_string('@ "12345678O" 0297\r') - self.assertRaises(lifescan_common.InvalidSerialNumber, + self.assertRaises(lifescan.InvalidSerialNumber, self.device.get_serial_number) def test_invalid_checksum(self): @@ -71,7 +71,7 @@ class TestOTUltra2(unittest.TestCase): def test_broken_checksum(self): self._set_return_string('% 13AZ\r') - self.assertRaises(lifescan_common.MissingChecksum, + self.assertRaises(lifescan.MissingChecksum, self.device.get_serial_number) if __name__ == '__main__': diff --git a/test/test_otultraeasy.py b/test/test_otultraeasy.py index 07480d2..7b91d56 100644 --- a/test/test_otultraeasy.py +++ b/test/test_otultraeasy.py @@ -15,8 +15,8 @@ import mock sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) -from glucometerutils.drivers import lifescan_common from glucometerutils.drivers import otultraeasy +from glucometerutils.support import lifescan from glucometerutils import exceptions class TestOTUltraMini(unittest.TestCase): @@ -31,12 +31,12 @@ class TestOTUltraMini(unittest.TestCase): def testCrc(self): self.assertEqual( 0x41cd, - lifescan_common.crc_ccitt(b'\x02\x06\x06\x03')) + lifescan.crc_ccitt(b'\x02\x06\x06\x03')) cmd_array = array.array('B', b'\x02\x06\x08\x03') self.assertEqual( 0x62C2, - lifescan_common.crc_ccitt(cmd_array)) + lifescan.crc_ccitt(cmd_array)) def testPacketUpdateChecksum(self): packet = otultraeasy._Packet() |