def METHOD_NAME(self):
    """Assert that nothing happens if social_auth info is available."""
    user = models.User(email="user@example.com", username="user")
    social_auth_user = social_models.UserSocialAuth(
        provider="Demo Provider", user=user
    )
    self.session.add(social_auth_user)
    self.session.add(user)
    self.session.commit()
    # If the method doesn't throw exception the test is ok
    app.when_user_log_in(app, user)