~bzr/ubuntu/lucid/bzr/beta-ppa

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_repository/test_has_same_location.py

  • Committer: Martin Pool
  • Date: 2010-08-18 04:26:39 UTC
  • mfrom: (129.1.8 packaging-karmic)
  • Revision ID: mbp@sourcefrog.net-20100818042639-mjoxtngyjwiu05fo
* PPA rebuild for lucid.
* PPA rebuild for karmic.
* PPA rebuild onto jaunty.
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007, 2008 Canonical Ltd
 
1
# Copyright (C) 2007-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
16
16
 
17
17
"""Tests for implementations of Repository.has_same_location."""
18
18
 
19
 
from bzrlib import bzrdir
 
19
from bzrlib import (
 
20
    bzrdir,
 
21
    transport,
 
22
    )
20
23
from bzrlib.tests import (
21
24
    TestNotApplicable,
22
25
    )
23
26
from bzrlib.tests.per_repository import TestCaseWithRepository
24
 
from bzrlib.transport import get_transport
25
27
 
26
28
 
27
29
class TestHasSameLocation(TestCaseWithRepository):
112
114
        if repo._format == other_repo._format:
113
115
            # We're testing the default format!  So we have to use a non-default
114
116
            # format for other_repo.
115
 
            get_transport(self.get_vfs_only_url()).delete_tree('other')
 
117
            transport.get_transport(self.get_vfs_only_url()
 
118
                                    ).delete_tree('other')
116
119
            other_repo = self.make_repository('other', format='metaweave')
117
120
        # Make sure the other_repo is not a RemoteRepository.
118
121
        other_bzrdir = bzrdir.BzrDir.open(self.get_vfs_only_url('other'))