~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_graph.py

  • Committer: John Arbash Meinel
  • Date: 2007-07-20 14:28:59 UTC
  • mfrom: (2625.6.3 bzr.email_message)
  • mto: This revision was merged to the branch mainline in revision 2640.
  • Revision ID: john@arbash-meinel.com-20070720142859-a24s0khul0yw91bh
(Adeodato Simó) EmailMessage class, allowing much nicer access to Email object than stdlib

Show diffs side-by-side

added added

removed removed

Lines of Context:
181
181
        self.assertEqual(set(['rev1']), graph.find_lca('rev1', 'rev1'))
182
182
        self.assertEqual(set(['rev1']), graph.find_lca('rev2a', 'rev2b'))
183
183
 
 
184
    def test_no_unique_lca(self):
 
185
        """Test error when one revision is not in the graph"""
 
186
        graph = self.make_graph(ancestry_1)
 
187
        self.assertRaises(errors.NoCommonAncestor, graph.find_unique_lca,
 
188
                          'rev1', '1rev')
 
189
 
184
190
    def test_lca_criss_cross(self):
185
191
        """Test least-common-ancestor after a criss-cross merge."""
186
192
        graph = self.make_graph(criss_cross)