~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/testrevision.py

  • Committer: Martin Pool
  • Date: 2005-08-30 06:49:06 UTC
  • Revision ID: mbp@sourcefrog.net-20050830064905-203cfbb58b1f5acc
- fix imports for moved errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
17
 
from bzrlib.selftest import FunctionalTestCase
 
17
from bzrlib.selftest import TestCaseInTempDir
18
18
 
19
19
 
20
20
def make_branches():
21
21
    from bzrlib.branch import Branch
22
22
    from bzrlib.commit import commit
23
 
    from bzrlib.revision import validate_revision_id
24
23
    import os
25
24
    os.mkdir("branch1")
26
25
    br1 = Branch("branch1", init=True)
46
45
    return br1, br2
47
46
 
48
47
 
49
 
class TestIsAncestor(FunctionalTestCase):
 
48
class TestIsAncestor(TestCaseInTempDir):
50
49
    def test_is_ancestor(self):
51
50
        """Test checking whether a revision is an ancestor of another revision"""
52
51
        from bzrlib.revision import is_ancestor, MultipleRevisionSources
68
67
        assert not is_ancestor(revisions[3], revisions_2[3], br1)
69
68
 
70
69
 
71
 
class TestCommonAncestor(FunctionalTestCase):
 
70
class TestCommonAncestor(TestCaseInTempDir):
72
71
    """Test checking whether a revision is an ancestor of another revision"""
73
72
 
74
73
    def test_common_ancestor(self):