def test_api_reject(
        self,
        custom_account_func_fixture,
        extra_kwargs,
        platform_account_fixture,
        configure_settings,
    ):
        """Test to ensure correct Account gets rejected."""
        account_json, account_instance = custom_account_func_fixture

        # assert "rejected" does not exist
        assert "rejected" not in account_json["requirements"]["disabled_reason"]

        # invoke api_reject()
        account_rejected = account_instance.api_reject(
            stripe_account=platform_account_fixture[1].id,
            api_key=settings.STRIPE_TEST_SECRET_KEY,
            **extra_kwargs,
        )

        assert account_rejected["charges_enabled"] is False
        assert account_rejected["payouts_enabled"] is False
        assert (
            account_rejected["requirements"]["disabled_reason"]
            == f"rejected.{extra_kwargs['reason']}"
        )
Test to ensure correct Account gets rejected.
tests/test_account.py