~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Martin
  • Date: 2011-01-26 19:34:58 UTC
  • mto: (5609.10.1 2.3b5-dev)
  • mto: This revision was merged to the branch mainline in revision 5635.
  • Revision ID: gzlist@googlemail.com-20110126193458-o6mwxaymyinlzqjo
Blindly change all users of get_transport to address the function via the transport module

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    btree_index,
35
35
    graph,
36
36
    tests,
 
37
    transport,
37
38
    )
38
39
from bzrlib.btree_index import BTreeBuilder, BTreeGraphIndex
39
40
from bzrlib.index import GraphIndex
42
43
    TestCase,
43
44
    TestCaseWithTransport,
44
45
    )
45
 
from bzrlib.transport import (
46
 
    get_transport,
47
 
    )
48
46
from bzrlib import (
49
47
    bzrdir,
50
48
    errors,
128
126
        def check_format(format, url):
129
127
            dir = format._matchingbzrdir.initialize(url)
130
128
            format.initialize(dir)
131
 
            t = get_transport(url)
 
129
            t = transport.get_transport(url)
132
130
            found_format = repository.RepositoryFormat.find_format(dir)
133
131
            self.failUnless(isinstance(found_format, format.__class__))
134
132
        check_format(weaverepo.RepositoryFormat7(), "bar")
606
604
class TestRepositoryConverter(TestCaseWithTransport):
607
605
 
608
606
    def test_convert_empty(self):
609
 
        t = get_transport(self.get_url('.'))
 
607
        t = transport.get_transport(self.get_url('.'))
610
608
        t.mkdir('repository')
611
609
        repo_dir = bzrdir.BzrDirMetaFormat1().initialize('repository')
612
610
        repo = weaverepo.RepositoryFormat7().initialize(repo_dir)