diff options
Diffstat (limited to '')
-rw-r--r-- | test/test_lifescan.py | 14 |
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() |