~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_version.py

  • Committer: Robert Collins
  • Date: 2006-09-05 08:14:23 UTC
  • mto: (1852.16.2 Tree.walkdirs)
  • mto: This revision was merged to the branch mainline in revision 1993.
  • Revision ID: robertc@robertcollins.net-20060905081423-b1bc9b092a9f8597
DeprecateĀ WorkingTree.last_revision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Tests for versioning of bzrlib."""
19
19
 
20
 
from bzrlib import version
 
20
from bzrlib import version, workingtree
21
21
from bzrlib.tests import TestCase, TestSkipped
22
22
 
23
23
class TestBzrlibVersioning(TestCase):
32
32
        if src_tree is None:
33
33
            raise TestSkipped("bzr tests aren't run from a bzr working tree")
34
34
        else:
35
 
            source_version = src_tree.last_revision()
 
35
            # ensure that what we got was in fact a working tree instance.
 
36
            self.assertIsInstance(src_tree, workingtree.WorkingTree)