summaryrefslogtreecommitdiffstats
path: root/test/test_lifescan.py
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-09-29 21:24:18 +0200
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2013-09-29 21:24:18 +0200
commit49e253fd606d47508d1b449325718f855c263d0a (patch)
tree4cabbe693617e2158e9691a328110276e4b8e7fc /test/test_lifescan.py
parenttest_otultra2: factor out setting of returned serial string. (diff)
downloadglucometerutils-49e253fd606d47508d1b449325718f855c263d0a.tar
glucometerutils-49e253fd606d47508d1b449325718f855c263d0a.tar.gz
glucometerutils-49e253fd606d47508d1b449325718f855c263d0a.tar.bz2
glucometerutils-49e253fd606d47508d1b449325718f855c263d0a.tar.lz
glucometerutils-49e253fd606d47508d1b449325718f855c263d0a.tar.xz
glucometerutils-49e253fd606d47508d1b449325718f855c263d0a.tar.zst
glucometerutils-49e253fd606d47508d1b449325718f855c263d0a.zip
Diffstat (limited to 'test/test_lifescan.py')
-rw-r--r--test/test_lifescan.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/test_lifescan.py b/test/test_lifescan.py
index d18152d..7252bec 100644
--- a/test/test_lifescan.py
+++ b/test/test_lifescan.py
@@ -12,19 +12,17 @@ import unittest
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-from glucometerutils import common
from glucometerutils.drivers import lifescan_common
-from glucometerutils import exceptions
class TestOTUltra2(unittest.TestCase):
- def testChecksum(self):
- checksum = lifescan_common.calculate_checksum(bytes('T', 'ascii'))
- self.assertEqual(0x0054, checksum)
+ def test_checksum(self):
+ checksum = lifescan_common.calculate_checksum(bytes('T', 'ascii'))
+ self.assertEqual(0x0054, checksum)
- checksum = lifescan_common.calculate_checksum(
- bytes('T "SAT","08/03/13","22:12:00 "', 'ascii'))
- self.assertEqual(0x0608, checksum)
+ checksum = lifescan_common.calculate_checksum(
+ bytes('T "SAT","08/03/13","22:12:00 "', 'ascii'))
+ self.assertEqual(0x0608, checksum)
if __name__ == '__main__':
unittest.main()