def test_assemble_mat(self, backend, mass, mat, coords, elements,
                          elem_node, expected_matrix):
        mat.zero()
        op2.par_loop(mass, elements,
                     mat(op2.INC, (elem_node[op2.i[0]], elem_node[op2.i[1]])),
                     coords(op2.READ, elem_node))
        mat.assemble()
        eps = 1.e-5
        assert_allclose(mat.values, expected_matrix, eps)
Enables ensuring that one of multiple optional fields is set
dataset/ETHPy150Open OP2/PyOP2/test/unit/test_matrices.py/TestMatrices.test_assemble_mat--crossover with--dataset/ETHPy150Open timothycrosley/hug/hug/validate.py/contains_one_of