def METHOD_NAME(session, t, asset_account):
    split = build_split(t, asset_account, 100)
    with pytest.raises(IllegalTransactionError):
        with session.begin_nested():
            session.add_all([t, split])