~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 01:35:40 UTC
  • Revision ID: mbp@sourcefrog.net-20050830013540-34e8996a86ba25fb
- rename FunctionalTest to TestCaseInTempDir

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():
46
46
    return br1, br2
47
47
 
48
48
 
49
 
class TestIsAncestor(FunctionalTestCase):
 
49
class TestIsAncestor(TestCaseInTempDir):
50
50
    def test_is_ancestor(self):
51
51
        """Test checking whether a revision is an ancestor of another revision"""
52
52
        from bzrlib.revision import is_ancestor, MultipleRevisionSources
68
68
        assert not is_ancestor(revisions[3], revisions_2[3], br1)
69
69
 
70
70
 
71
 
class TestCommonAncestor(FunctionalTestCase):
 
71
class TestCommonAncestor(TestCaseInTempDir):
72
72
    """Test checking whether a revision is an ancestor of another revision"""
73
73
 
74
74
    def test_common_ancestor(self):