@bacpypes_debugging
def unsigned_endec(v, x):
    if _debug: unsigned_endec._debug("unsigned_endec %r %r", v, x)

    tag = unsigned_tag(x)
    if _debug: unsigned_endec._debug("    - tag: %r, %r", tag, tag.tagData)

    obj = Unsigned(v)
    if _debug: unsigned_endec._debug("    - obj: %r, %r", obj, obj.value)

    assert unsigned_encode(obj) == tag
    assert unsigned_decode(tag) == obj
Pass the value to Unsigned, construct a tag from the hex string,
dataset/ETHPy150Open JoelBender/bacpypes/tests/test_primitive_data/test_unsigned.py/unsigned_endec