diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.com> | 2020-10-04 16:12:44 +0200 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2020-10-04 21:47:57 +0200 |
commit | 81d4e308a36cd06f5e7bac30d2af10145c8f193a (patch) | |
tree | acf5314486de90f79ec4b77b423f282e7a9afaa4 /glucometerutils/support/tests/test_freestyle.py | |
parent | td4277: update dependency information for pyserial. (diff) | |
download | glucometerutils-81d4e308a36cd06f5e7bac30d2af10145c8f193a.tar glucometerutils-81d4e308a36cd06f5e7bac30d2af10145c8f193a.tar.gz glucometerutils-81d4e308a36cd06f5e7bac30d2af10145c8f193a.tar.bz2 glucometerutils-81d4e308a36cd06f5e7bac30d2af10145c8f193a.tar.lz glucometerutils-81d4e308a36cd06f5e7bac30d2af10145c8f193a.tar.xz glucometerutils-81d4e308a36cd06f5e7bac30d2af10145c8f193a.tar.zst glucometerutils-81d4e308a36cd06f5e7bac30d2af10145c8f193a.zip |
Diffstat (limited to '')
-rw-r--r-- | glucometerutils/support/tests/test_freestyle.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/glucometerutils/support/tests/test_freestyle.py b/glucometerutils/support/tests/test_freestyle.py deleted file mode 100644 index fd3f403..0000000 --- a/glucometerutils/support/tests/test_freestyle.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -# -# SPDX-FileCopyrightText: © 2019 The glucometerutils Authors -# SPDX-License-Identifier: MIT -"""Tests for the common FreeStyle functions..""" - -# 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", - freestyle._FREESTYLE_MESSAGE.build( - {"message_type": 23, "command": b"command"} - ), - ) |