diff options
| author | Dave Hibberd <d@vehibberd.com> | 2023-10-16 21:37:27 +0100 |
|---|---|---|
| committer | Dave Hibberd <d@vehibberd.com> | 2023-10-16 21:37:27 +0100 |
| commit | 91dbf844ad923e3c4bca1252dd104d8fc8ce5475 (patch) | |
| tree | 93c4db659daf278db034b304e4cd910454504ec1 /tests/unit/test_utils.py | |
| parent | 6f19923a918f7fb63a444b0c99950fdbe9d2f74c (diff) | |
New upstream version 20231016upstream/20231016
Diffstat (limited to 'tests/unit/test_utils.py')
| -rw-r--r-- | tests/unit/test_utils.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py deleted file mode 100644 index 575f3e3..0000000 --- a/tests/unit/test_utils.py +++ /dev/null @@ -1,21 +0,0 @@ -from chirp import util -from tests.unit import base - - -class TestUtils(base.BaseTest): - def test_hexprint_with_string(self): - util.hexprint('00000000000000') - - def test_hexprint_with_bytes(self): - util.hexprint(b'00000000000000') - - def test_struct_pack(self): - struct = util.StringStruct - - self.assertEqual('\x00c', - struct.pack('bc', 0, 'c')) - - def test_struct_unpack(self): - struct = util.StringStruct - - self.assertEqual((1, 'c'), struct.unpack('bc', '\x01c')) |
