def METHOD_NAME(self, db_session, user):
    models.UserIdentity(provider="provider", provider_unique_id="1", user=user)
    models.UserIdentity(provider="provider", provider_unique_id="2", user=user)
    db_session.commit()
    db_session.delete(user)
    assert not db_session.query(models.UserIdentity).count()