def test__attach_objects_post_save_hook_livemode_valid_platform_account(
        self, account, request, platform_account_fixture, configure_settings
    ):
        """Ensure _attach_objects_post_save_hook() on Account model works as expected."""
        account_json, account_instance = request.getfixturevalue(account)

        # Invoke _attach_objects_post_save_hook()
        account_instance._attach_objects_post_save_hook(
            cls=Account, data=account_json, api_key=settings.STRIPE_SECRET_KEY
        )

        account_instance.refresh_from_db()

        # Platform Accounts have no livemode
        assert account_instance.livemode is None
Ensure _attach_objects_post_save_hook() on Account model works as expected.
tests/test_account.py