def test_16_bit_uuid():
    u = BleUUID('16 bit from str', uuid_format=UuidLength.BIT_16, hex='FEA6')
    assert len(u.hex)
    u = BleUUID('16 bit from int', uuid_format=UuidLength.BIT_16, int=1234)
    assert len(u.hex)
    u = BleUUID('16 bit from bytes', uuid_format=UuidLength.BIT_16, bytes=bytes([171, 205]))
    assert len(u.hex)
def test_16_bit_uuid():
    u = BleUUID('16 bit from str', uuid_format=UuidLength.BIT_16, hex='FEA6')
    assert len(u.hex)
    u = BleUUID('16 bit from int', uuid_format=UuidLength.BIT_16, int=1234)
    assert len(u.hex)
    u = BleUUID('16 bit from bytes', uuid_format=UuidLength.BIT_16, bytes=bytes([171, 205]))
    assert len(u.hex)