~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testrevision.py

  • Committer: Robert Collins
  • Date: 2005-08-24 12:13:13 UTC
  • mto: (974.1.50) (1185.1.10) (1092.3.1)
  • mto: This revision was merged to the branch mainline in revision 1139.
  • Revision ID: robertc@robertcollins.net-20050824121313-f604a90d56310911
merge up with mpool

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
 
40
40
 
41
41
class TestIsAncestor(InTempDir):
42
 
    """Test checking whether a revision is an ancestor of another revision"""
43
 
    def runTest(self):
 
42
 
 
43
    def test_is_ancestor(self):
 
44
        """Test checking whether a revision is an ancestor of another revision"""
44
45
        from bzrlib.revision import is_ancestor, MultipleRevisionSources
45
46
        from bzrlib.errors import NoSuchRevision
46
47
        br1, br2 = make_branches()
58
59
        assert is_ancestor(revisions[3], revisions_2[4], br1)
59
60
        assert is_ancestor(revisions[3], revisions_2[3], sources)
60
61
        assert not is_ancestor(revisions[3], revisions_2[3], br1)
61
 
 
62
 
 
63
 
TEST_CLASSES = [
64
 
    TestIsAncestor,
65
 
    ]