~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_version.py

  • Committer: Robert Collins
  • Date: 2009-09-17 11:54:41 UTC
  • mto: This revision was merged to the branch mainline in revision 4700.
  • Revision ID: robertc@robertcollins.net-20090917115441-2ug57z6eyrnb6zim
Add stronger test isolation by interception BzrDir.open and checking the thing being opened is known to the test suite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
    def test_get_bzr_source_tree(self):
26
26
        """Get tree for bzr source, if any."""
 
27
        self.permit_source_tree_branch_repo()
27
28
        # We don't know if these tests are being run from a checkout or branch
28
29
        # of bzr, from an installed copy, or from source unpacked from a
29
30
        # tarball.  We don't construct a branch just for testing this, so we