/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/transport_util.py

  • Committer: John Arbash Meinel
  • Date: 2009-12-10 17:16:19 UTC
  • mfrom: (4884 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4889.
  • Revision ID: john@arbash-meinel.com-20091210171619-ehdcxjbl8afhq9g1
Bring in bzr.dev 4884

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
from bzrlib.transport import (
35
35
    ConnectedTransport,
 
36
    get_transport,
36
37
    register_transport,
37
38
    register_urlparse_netloc_protocol,
38
39
    unregister_transport,
106
107
        self.addCleanup(unregister)
107
108
        super(TestCaseWithConnectionHookedTransport, self).setUp()
108
109
        self.reset_connections()
 
110
        # Add the 'hooked' url to the permitted url list.
 
111
        # XXX: See TestCase.start_server. This whole module shouldn't need to
 
112
        # exist - a bug has been filed on that. once its cleanedup/removed, the
 
113
        # standard test support code will work and permit the server url
 
114
        # correctly.
 
115
        url = self.get_url()
 
116
        t = get_transport(url)
 
117
        if t.base.endswith('work/'):
 
118
            t = t.clone('../..')
 
119
        self.permit_url(t.base)
109
120
 
110
121
    def get_url(self, relpath=None):
111
122
        super_self = super(TestCaseWithConnectionHookedTransport, self)