def METHOD_NAME(scaling):
    with pytest.raises(RuntimeError) as error:
        # Unit square cell scaled down by 'scaling' and the first vertex
        # is distorted so that the vertices are clearly non coplanar
        x = [[1.0, 0.5, 0.6], [0.0, scaling, 0.0],
             [0.0, 0.0, scaling], [0.0, 1.0, 1.0]]
        cells = [[0, 1, 2, 3]]
        domain = ufl.Mesh(element("Lagrange", "quadrilateral", 1, rank=1))
        mesh = create_mesh(MPI.COMM_SELF, cells, x, domain)
        _cpp.mesh.volume_entities(mesh, [0], mesh.topology.dim)
    assert "Not coplanar" in str(error.value)