(transactions)
Make sure the transactions are all in a consistent state.
    Specifically, they all need to have the same case id.
Make sure the transactions are all in a consistent state.
    Specifically, they all need to have the same case id.
Make sure the transactions are all in a consistent state . Specifically they all need to have the same case id .
def verify_transaction_cases(transactions):
    """
    Make sure the transactions are all in a consistent state.
    Specifically, they all need to have the same case id.
    """
    assert transactions and all(
        tx.case_id == transactions[0].case_id for tx in transactions
    )
def verify_transaction_cases ( transactions ) : assert transactions and all ( tx . case_id == transactions [ 0 ] . case_id for tx in transactions )