~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testgraph.py

  • Committer: Aaron Bentley
  • Date: 2005-09-10 23:46:35 UTC
  • mto: (1185.3.4)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: aaron.bentley@utoronto.ca-20050910234635-2586547c19f8c4cc
Updated name to farthest_nodes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from bzrlib.selftest import TestCase
2
 
from bzrlib.graph import farthest_node
 
2
from bzrlib.graph import farthest_nodes
3
3
 
4
4
class TestBase(TestCase):
5
5
    def edge_add(self, *args):
26
26
                if ancestor not in descendants:
27
27
                    descendants[ancestor] = set()
28
28
                descendants[ancestor].add(node)
29
 
        nodes = farthest_node(self.graph, descendants, 'A')
 
29
        nodes = farthest_nodes(self.graph, descendants, 'A')
30
30
        self.assertEqual(nodes[0], 'D')
31
31
        assert nodes[1] in ('N', 'C')
32
32
        assert nodes[2] in ('N', 'C')