Verify get_be_uint16 is what we need for ports
This commit is contained in:
parent
f7ab25ab78
commit
994dde6a1b
|
@ -34,6 +34,10 @@ def test_unpack_be_uint16():
|
|||
assert u.get_be_uint16() == 51
|
||||
u = Unpacker(b'\x01\x00')
|
||||
assert u.get_be_uint16() == 256
|
||||
# this is needed for the connless lis2
|
||||
# packed_addresses field
|
||||
u = Unpacker(b'\x20\x6F')
|
||||
assert u.get_be_uint16() == 8303
|
||||
|
||||
def test_unpack_multiple_be_uint16():
|
||||
u = Unpacker(b'\x00\x01\x00\x02')
|
||||
|
|
Loading…
Reference in a new issue