def METHOD_NAME(self, source_app, app_storage):
    # Given a source user
    passphrase = PassphraseGenerator.get_default().generate_passphrase()
    source_user = create_source_user(
        db_session=db.session,
        source_passphrase=passphrase,
        source_app_storage=app_storage,
    )
    with source_app.test_request_context():
        # Who previously logged in
        SessionManager.log_user_in(db_session=db.session, supplied_passphrase=passphrase)
        # But since then their account was deleted
        source_in_db = source_user.get_db_record()
        source_in_db.deleted_at = datetime.utcnow()
        db.session.commit()
        # When querying the current user from the SessionManager, it fails with the right error
        with pytest.raises(UserHasBeenDeleted):
            SessionManager.get_logged_in_user(db_session=db.session)