diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2018-01-01 15:48:16 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2018-01-01 15:48:16 +0100 |
commit | 60eef1be7ebfce29b79f2eb88e076c63cd0290e3 (patch) | |
tree | de56dfe2fc386a5e2833f6961360f169485c11c1 | |
parent | otverio2015: reorder functions to match otultraeasy. (diff) | |
download | glucometerutils-60eef1be7ebfce29b79f2eb88e076c63cd0290e3.tar glucometerutils-60eef1be7ebfce29b79f2eb88e076c63cd0290e3.tar.gz glucometerutils-60eef1be7ebfce29b79f2eb88e076c63cd0290e3.tar.bz2 glucometerutils-60eef1be7ebfce29b79f2eb88e076c63cd0290e3.tar.lz glucometerutils-60eef1be7ebfce29b79f2eb88e076c63cd0290e3.tar.xz glucometerutils-60eef1be7ebfce29b79f2eb88e076c63cd0290e3.tar.zst glucometerutils-60eef1be7ebfce29b79f2eb88e076c63cd0290e3.zip |
-rw-r--r-- | test/test_lifescan.py (renamed from test/test_otultraeasy.py) | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/test/test_otultraeasy.py b/test/test_lifescan.py index 52a98f1..5781829 100644 --- a/test/test_otultraeasy.py +++ b/test/test_lifescan.py @@ -10,23 +10,12 @@ import array import os import sys import unittest -from unittest import mock sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) -from glucometerutils.drivers import otultraeasy from glucometerutils.support import lifescan -from glucometerutils import exceptions - -class TestOTUltraMini(unittest.TestCase): - def setUp(self): - self.addCleanup(mock.patch.stopall) - - mock_serial = mock.patch('serial.Serial').start() - self.mock_readline = mock_serial.return_value.readline - - self.device = otultraeasy.Device('mockdevice') +class TestChecksum(unittest.TestCase): def test_crc(self): self.assertEqual( 0x41cd, |