summaryrefslogtreecommitdiffstats
path: root/test/test_lifescan.py
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2014-01-29 23:45:05 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2014-01-29 23:45:05 +0100
commit6bfc12f901e938f95ea64bd0a80090333769e234 (patch)
tree0a2e9cf8df42efd1e93d0430431000a5cfb93dfa /test/test_lifescan.py
parentInitial support for OneTouch Ultra Easy glucometers. (diff)
downloadglucometerutils-6bfc12f901e938f95ea64bd0a80090333769e234.tar
glucometerutils-6bfc12f901e938f95ea64bd0a80090333769e234.tar.gz
glucometerutils-6bfc12f901e938f95ea64bd0a80090333769e234.tar.bz2
glucometerutils-6bfc12f901e938f95ea64bd0a80090333769e234.tar.lz
glucometerutils-6bfc12f901e938f95ea64bd0a80090333769e234.tar.xz
glucometerutils-6bfc12f901e938f95ea64bd0a80090333769e234.tar.zst
glucometerutils-6bfc12f901e938f95ea64bd0a80090333769e234.zip
Diffstat (limited to 'test/test_lifescan.py')
-rw-r--r--test/test_lifescan.py28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/test_lifescan.py b/test/test_lifescan.py
deleted file mode 100644
index 7252bec..0000000
--- a/test/test_lifescan.py
+++ /dev/null
@@ -1,28 +0,0 @@
-# -*- coding: utf-8 -*-
-"""Tests for the LifeScan Common functions."""
-
-__author__ = 'Diego Elio Pettenò'
-__email__ = 'flameeyes@flameeyes.eu'
-__copyright__ = 'Copyright © 2013, Diego Elio Pettenò'
-__license__ = 'MIT'
-
-import os
-import sys
-import unittest
-
-sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-
-from glucometerutils.drivers import lifescan_common
-
-
-class TestOTUltra2(unittest.TestCase):
- 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)
-
-if __name__ == '__main__':
- unittest.main()