def test_gatt_db(gatt_db: GattDB):
    handles = set([c.handle for c in gatt_db.characteristics])
    uuids = set([c.uuid for c in gatt_db.characteristics])
    assert (handles == set([gatt_db.uuid2handle(uuid) for uuid in uuids]))
    assert (uuids == set([gatt_db.handle2uuid(handle) for handle in handles]))
    gatt_db.dump_to_csv()
def test_gatt_db(gatt_db: GattDB):
    handles = set([c.handle for c in gatt_db.characteristics])
    uuids = set([c.uuid for c in gatt_db.characteristics])
    assert (handles == set([gatt_db.uuid2handle(uuid) for uuid in uuids]))
    assert (uuids == set([gatt_db.handle2uuid(handle) for handle in handles]))
    gatt_db.dump_to_csv()