def METHOD_NAME(self):
    hx = np.ones(16) * 1.0
    hy = np.ones(16) * 2.0
    hz = np.ones(16) * 3.0
    px = np.r_[0, 3, 5]
    py = np.r_[0, 3, 5]
    pz = np.r_[2.0, 3.0, 4.0]
    xorig = np.r_[0.0, 0.0, 0.0]
    tensor_mesh = discretize.TensorMesh((hx, hy, hz), x0=xorig)
    tree_mesh = discretize.TreeMesh((hx, hy, hz), x0=xorig)
    tree_mesh.refine(4)
    locs = np.c_[px, py, pz]
    out1 = segmented_line_current_source_term(tensor_mesh, locs)
    out2 = segmented_line_current_source_term(tree_mesh, locs)
    sort1 = np.lexsort(tensor_mesh.edges.T)
    sort2 = np.lexsort(tree_mesh.edges.T)
    np.testing.assert_allclose(out1[sort1], out2[sort2])