def test_characteristic_view(gatt_db: GattDB):
    chars: List[Characteristic] = []
    for service in gatt_db.services.values():
        for char in service.characteristics.values():
            chars.append(char)
    assert (len(chars) == len(gatt_db.characteristics))
    for char in chars:
        assert (char.uuid in gatt_db.characteristics)
    for char in gatt_db.characteristics:
        assert len(char.uuid.hex)
    assert (list(gatt_db.characteristics.keys()) == [c.uuid for c in chars])
    assert (list([c.uuid for c in gatt_db.characteristics.values()]) == [c.uuid for c in chars])
def test_characteristic_view(gatt_db: GattDB):
    chars: List[Characteristic] = []
    for service in gatt_db.services.values():
        for char in service.characteristics.values():
            chars.append(char)
    assert (len(chars) == len(gatt_db.characteristics))
    for char in chars:
        assert (char.uuid in gatt_db.characteristics)
    for char in gatt_db.characteristics:
        assert len(char.uuid.hex)
    assert (list(gatt_db.characteristics.keys()) == [c.uuid for c in chars])
    assert (list([c.uuid for c in gatt_db.characteristics.values()]) == [c.uuid for c in chars])