~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/chroot.py

Further test-usability for chroots.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
class TestingChrootServer(ChrootServer):
130
130
 
131
131
    def __init__(self):
132
 
        ChrootServer.__init__(self, get_transport('.'))
 
132
        """TestingChrootServer is not usable until setUp is called."""
 
133
 
 
134
    def setUp(self, backing_server=None):
 
135
        """Setup the Chroot on backing_server."""
 
136
        if backing_server is not None:
 
137
            self.backing_transport = get_transport(backing_server.get_url())
 
138
        else:
 
139
            self.backing_transport = get_transport('.')
 
140
        ChrootServer.setUp(self)
133
141
 
134
142
 
135
143
def get_test_permutations():