def METHOD_NAME(self):
    # Single branch, discontiguous segments.
    s0p = A.mpoint(0, 0, 0, 10)
    s0d = A.mpoint(1, 0, 0, 10)
    s1p = A.mpoint(3, 0, 0, 10)
    s1d = A.mpoint(4, 0, 0, 10)
    tree = A.segment_tree()
    i = tree.append(A.mnpos, s0p, s0d, 1)
    tree.append(i, s1p, s1d, 2)
    m = A.morphology(tree)
    iso = A.isometry.translate(2, 3, 4)
    place = A.place_pwlin(m, iso)
    x0p = iso(s0p)
    x0d = iso(s0d)
    x1p = iso(s1p)
    L0 = place.at(A.location(0, 0))
    L0s = place.all_at(A.location(0, 0))
    self.assertEqual(x0p, L0)
    self.assertEqual([x0p], L0s)
    Lhalf = place.at(A.location(0, 0.5))
    Lhalfs = place.all_at(A.location(0, 0.5))
    self.assertTrue(x0d == Lhalf or x1p == Lhalf)
    self.assertTrue([x0d, x1p] == Lhalfs)
    Chalf = [(s.prox, s.dist) for s in place.segments([A.cable(0, 0.0, 0.5)])]
    self.assertEqual([(x0p, x0d)], Chalf)
    Chalf_all = [
        (s.prox, s.dist) for s in place.all_segments([A.cable(0, 0.0, 0.5)])
    ]
    self.assertEqual([(x0p, x0d), (x1p, x1p)], Chalf_all)