~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-23 06:52:09 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-20050823065209-81cd5962c401751b
move io redirection into each test case from the global runner

Show diffs side-by-side

added added

removed removed

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