From 90e9a2d81d555bd916f57d7538881966e77543e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Mon, 16 Jan 2017 22:07:42 +0000 Subject: LifeScan devices: move lifescan_common to the support directory. This makes it easier to figure out which files represent drivers, and which ones are per-vendor support modules. --- test/test_otultra2.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/test_otultra2.py') 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__': -- cgit v1.2.3