@pytest.mark.parametrize("mode", [op2.READ, op2.RW, op2.MAX, op2.MIN])
    def test_invalid_mode(self, backend, elements, elem_node, mat, mode):
        with pytest.raises(ModeValueError):
            op2.par_loop(op2.Kernel("", "dummy"), elements,
                         mat(mode, (elem_node[op2.i[0]], elem_node[op2.i[1]])))
generated source for method contractDetails
dataset/ETHPy150Open OP2/PyOP2/test/unit/test_matrices.py/TestMatrices.test_invalid_mode--crossover with--dataset/ETHPy150Open CarterBain/Medici/ib/ext/EWrapperMsgGenerator.py/EWrapperMsgGenerator.contractDetails