diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-12-28 15:05:13 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2017-12-28 15:05:13 +0100 |
commit | 74bc4e820acf653d0d456106799f33e75a0eba43 (patch) | |
tree | c2c65d0673f86478a401a782573dab40ccbf8bea | |
parent | tests: fix OneTouch tests to use Python's own mock, and leverage absl-py. (diff) | |
download | glucometerutils-74bc4e820acf653d0d456106799f33e75a0eba43.tar glucometerutils-74bc4e820acf653d0d456106799f33e75a0eba43.tar.gz glucometerutils-74bc4e820acf653d0d456106799f33e75a0eba43.tar.bz2 glucometerutils-74bc4e820acf653d0d456106799f33e75a0eba43.tar.lz glucometerutils-74bc4e820acf653d0d456106799f33e75a0eba43.tar.xz glucometerutils-74bc4e820acf653d0d456106799f33e75a0eba43.tar.zst glucometerutils-74bc4e820acf653d0d456106799f33e75a0eba43.zip |
-rw-r--r-- | test/test_otultra2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_otultra2.py b/test/test_otultra2.py index 5713987..9f18a85 100644 --- a/test/test_otultra2.py +++ b/test/test_otultra2.py @@ -22,12 +22,12 @@ from glucometerutils import exceptions class TestOTUltra2(parameterized.TestCase): def test_checksum(self): - checksum = otultra2._calculate_checksum(bytes('T', 'ascii')) + checksum = otultra2._calculate_checksum(b'T') self.assertEqual(0x0054, checksum) def test_checksum_full(self): checksum = otultra2._calculate_checksum( - bytes('T "SAT","08/03/13","22:12:00 "', 'ascii')) + b'T "SAT","08/03/13","22:12:00 "') self.assertEqual(0x0608, checksum) @parameterized.named_parameters( |