From 87d8fb75811a4186b27baf24d12a155a7acce414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Elio=20Petten=C3=B2?= Date: Tue, 1 Mar 2016 23:01:33 +0000 Subject: Move the InvalidChecksum exception to the base exceptions module. Most glucometers have *some* sort of checksum, so there is no reason to implement this on a per-driver basis. --- test/test_otultra2.py | 2 +- test/test_otultraeasy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test_otultra2.py b/test/test_otultra2.py index 4d59f6a..34078e3 100644 --- a/test/test_otultra2.py +++ b/test/test_otultra2.py @@ -65,7 +65,7 @@ class TestOTUltra2(unittest.TestCase): def test_invalid_checksum(self): self._set_return_string('% 1337\r') - self.assertRaises(lifescan_common.InvalidChecksum, + self.assertRaises(exceptions.InvalidChecksum, self.device.get_serial_number) def test_broken_checksum(self): diff --git a/test/test_otultraeasy.py b/test/test_otultraeasy.py index f263f12..07480d2 100644 --- a/test/test_otultraeasy.py +++ b/test/test_otultraeasy.py @@ -52,7 +52,7 @@ class TestOTUltraMini(unittest.TestCase): packet.validate_checksum() packet.disconnect = False - with self.assertRaises(lifescan_common.InvalidChecksum): + with self.assertRaises(exceptions.InvalidChecksum): packet.validate_checksum() -- cgit v1.2.3