def get_id_from_test_id(test_id, session=None):
    session = session or get_session()
    return db_utils.model_query(models.Test, session).filter_by(
        test_id=test_id).value('id')
Return the id (uuid primary key) for a test given it's test_id value
dataset/ETHPy150Open openstack-infra/subunit2sql/subunit2sql/db/api.py/get_id_from_test_id