def METHOD_NAME(
    self,
    fileupload_retrieve_mock,
    account_retrieve_mock,
):
    fake_account = deepcopy(FAKE_ACCOUNT)
    fake_account["settings"]["branding"]["icon"] = None
    account_retrieve_mock.return_value = fake_account
    with patch.object(
        models.api,
        "get_api_key_details_by_prefix",
        return_value=(APIKeyType.secret, True),
    ):
        account = models.Account.sync_from_stripe_data(
            fake_account, api_key=djstripe_settings.STRIPE_SECRET_KEY
        )
        self.assertEqual(account.default_api_key, "sk_live_foo")
    del settings.STRIPE_SECRET_KEY, settings.STRIPE_TEST_SECRET_KEY
    del settings.STRIPE_PUBLIC_KEY, settings.STRIPE_TEST_PUBLIC_KEY
    self.assertEqual(djstripe_settings.STRIPE_LIVE_MODE, True)
    self.assertEqual(djstripe_settings.STRIPE_SECRET_KEY, "sk_live_foo")
    self.assertEqual(djstripe_settings.STRIPE_PUBLIC_KEY, "pk_live_foo")