def METHOD_NAME(self):
    """Assert the first name and last name are updated when first name missing."""
    strategy = load_strategy()
    backend = load_backend(strategy, "saml_fer", None)
    details = {"first_name": " ", "last_name": "Doe", "fullname": "John Doe"}
    with mock.patch(
        "marsha.account.social_pipeline.social_auth.social_social_details"
    ) as social_details_mock:
        social_details_mock.return_value = {"details": details}
        self.assertDictEqual(
            social_details(backend, details, response=None),
            {
                "details": {
                    "first_name": "",
                    "last_name": "John Doe",
                    "fullname": "John Doe",
                }
            },
        )