def METHOD_NAME(
    self,
    cluster: clusterlib.ClusterLib,
    payment_addrs: tp.List[clusterlib.AddressRecord],
):
    """Test locking a Tx output with an inline datum using old Tx era.
    Expect failure with Alonzo-era Tx.
    """
    temp_template = common.get_test_id(cluster)
    plutus_op = plutus_common.PlutusOp(
        script_file=plutus_common.ALWAYS_SUCCEEDS_PLUTUS_V2,
        datum_file=plutus_common.DATUM_42_TYPED,
        redeemer_cbor_file=plutus_common.REDEEMER_42_CBOR,
        execution_cost=plutus_common.ALWAYS_SUCCEEDS_V2_COST,
    )
    # Create a Tx output with an inline datum at the script address
    try:
        script_utxos, *__ = spend_build._build_fund_script(
            temp_template=temp_template,
            cluster=cluster,
            payment_addr=payment_addrs[0],
            dst_addr=payment_addrs[1],
            plutus_op=plutus_op,
        )
    except clusterlib.CLIError as exc:
        if "Inline datums cannot be used" not in str(exc):
            raise
        return
    # Attempt to use Babbage features in older era transactions should fail. If we are here,
    # it was not the case.
    assert script_utxos and not script_utxos[0].inline_datum, "Inline datum was NOT ignored"
    blockers.GH(
        issue=4424, message="Inconsistent handling of Babbage-only features"
    ).finish_test()