def test_ble_uuids():
    UUID_STR = '00001801-0000-1000-8000-00805f9b34fb'
    UUID_INT = 486857058725721441610830112830715

    class TestUUIDs(metaclass=UUIDsMeta):
        TEST_UUID = BleUUID('Test', hex=UUID_STR)
    assert (UUID_STR in TestUUIDs)
    assert (BLE_BASE_UUID.format('ABCD') not in TestUUIDs)
    assert (UUID_INT in TestUUIDs)
    assert (43981 not in TestUUIDs)
    assert (TestUUIDs.TEST_UUID in TestUUIDs)
    assert (uuid.UUID(hex=UUID_STR) in TestUUIDs)
    assert TestUUIDs[UUID_STR].hex
    assert TestUUIDs[UUID_INT].hex
    assert TestUUIDs.TEST_UUID.hex
    assert TestUUIDs[uuid.UUID(hex=UUID_STR)].hex
    assert (len([x for x in TestUUIDs]) == 1)
def test_ble_uuids():
    UUID_STR = '00001801-0000-1000-8000-00805f9b34fb'
    UUID_INT = 486857058725721441610830112830715

    class TestUUIDs(metaclass=UUIDsMeta):
        TEST_UUID = BleUUID('Test', hex=UUID_STR)
    assert (UUID_STR in TestUUIDs)
    assert (BLE_BASE_UUID.format('ABCD') not in TestUUIDs)
    assert (UUID_INT in TestUUIDs)
    assert (43981 not in TestUUIDs)
    assert (TestUUIDs.TEST_UUID in TestUUIDs)
    assert (uuid.UUID(hex=UUID_STR) in TestUUIDs)
    assert TestUUIDs[UUID_STR].hex
    assert TestUUIDs[UUID_INT].hex
    assert TestUUIDs.TEST_UUID.hex
    assert TestUUIDs[uuid.UUID(hex=UUID_STR)].hex
    assert (len([x for x in TestUUIDs]) == 1)