summaryrefslogtreecommitdiffstats
path: root/test/test_otultra2.py
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-01-16 23:07:42 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2017-01-16 23:07:42 +0100
commit90e9a2d81d555bd916f57d7538881966e77543e4 (patch)
treefe006a4e16b674ffff25cf97ff1ae83bb1535225 /test/test_otultra2.py
parentAdd an emacs local configuration file. (diff)
downloadglucometerutils-90e9a2d81d555bd916f57d7538881966e77543e4.tar
glucometerutils-90e9a2d81d555bd916f57d7538881966e77543e4.tar.gz
glucometerutils-90e9a2d81d555bd916f57d7538881966e77543e4.tar.bz2
glucometerutils-90e9a2d81d555bd916f57d7538881966e77543e4.tar.lz
glucometerutils-90e9a2d81d555bd916f57d7538881966e77543e4.tar.xz
glucometerutils-90e9a2d81d555bd916f57d7538881966e77543e4.tar.zst
glucometerutils-90e9a2d81d555bd916f57d7538881966e77543e4.zip
Diffstat (limited to '')
-rw-r--r--test/test_otultra2.py8
1 files changed, 4 insertions, 4 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__':