def assert_not_found(db, ORMType, id):
    """Assert that an item with a given id is not found"""
    assert db.query(ORMType).filter(ORMType.id == id).first() is None
Assert that an item with a given id is not found
jupyterhub/tests/test_orm.py