diff options
author | Ben <b-schaefer@posteo.de> | 2020-02-21 10:45:40 +0100 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-03-08 00:36:39 +0100 |
commit | e72b02d84e7f67cdf6107862ad580e951a5bbda1 (patch) | |
tree | 0887513d2478f55b27abccfeb307f313231bd994 /test/test_freestyle.py | |
parent | pre-commit guide in README (diff) | |
download | glucometerutils-e72b02d84e7f67cdf6107862ad580e951a5bbda1.tar glucometerutils-e72b02d84e7f67cdf6107862ad580e951a5bbda1.tar.gz glucometerutils-e72b02d84e7f67cdf6107862ad580e951a5bbda1.tar.bz2 glucometerutils-e72b02d84e7f67cdf6107862ad580e951a5bbda1.tar.lz glucometerutils-e72b02d84e7f67cdf6107862ad580e951a5bbda1.tar.xz glucometerutils-e72b02d84e7f67cdf6107862ad580e951a5bbda1.tar.zst glucometerutils-e72b02d84e7f67cdf6107862ad580e951a5bbda1.zip |
Diffstat (limited to '')
-rw-r--r-- | test/test_freestyle.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/test_freestyle.py b/test/test_freestyle.py index 0ff669d..fb3f3b9 100644 --- a/test/test_freestyle.py +++ b/test/test_freestyle.py @@ -6,18 +6,17 @@ # pylint: disable=protected-access,missing-docstring from absl.testing import absltest - from glucometerutils.support import freestyle class TestFreeStyle(absltest.TestCase): - def test_outgoing_command(self): """Test the generation of a new outgoing message.""" self.assertEqual( - b'\0\x17\7command\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0' - b'\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0', + b"\0\x17\7command\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" + b"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", freestyle._FREESTYLE_MESSAGE.build( - {'message_type': 23, 'command': b'command'}), + {"message_type": 23, "command": b"command"} + ), ) |