~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-02-11 04:02:41 UTC
  • mfrom: (5017.2.2 tariff)
  • Revision ID: pqm@pqm.ubuntu.com-20100211040241-w6n021dz0uus341n
(mbp) add import-tariff tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2007-2010 Canonical Ltd
 
1
# Copyright (C) 2007, 2008 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 (
20
 
    bzrdir,
21
 
    transport,
22
 
    )
 
19
from bzrlib import bzrdir
23
20
from bzrlib.tests import (
24
21
    TestNotApplicable,
25
22
    )
26
23
from bzrlib.tests.per_repository import TestCaseWithRepository
 
24
from bzrlib.transport import get_transport
27
25
 
28
26
 
29
27
class TestHasSameLocation(TestCaseWithRepository):
114
112
        if repo._format == other_repo._format:
115
113
            # We're testing the default format!  So we have to use a non-default
116
114
            # format for other_repo.
117
 
            transport.get_transport(self.get_vfs_only_url()
118
 
                                    ).delete_tree('other')
 
115
            get_transport(self.get_vfs_only_url()).delete_tree('other')
119
116
            other_repo = self.make_repository('other', format='metaweave')
120
117
        # Make sure the other_repo is not a RemoteRepository.
121
118
        other_bzrdir = bzrdir.BzrDir.open(self.get_vfs_only_url('other'))