/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/test_smart_transport.py

Extract a simple SmartClient class from RemoteTransport, and a hack to avoid VFS operations when probing for a bzrdir over a smart transport.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
        SmartRequestHandler,
44
44
        )
45
45
from bzrlib.smart import (
 
46
        client,
46
47
        medium,
47
48
        protocol,
48
49
        request,
1108
1109
 
1109
1110
    def setUp(self):
1110
1111
        super(TestSmartProtocol, self).setUp()
 
1112
        # XXX: self.server_to_client doesn't seem to be used.  If so,
 
1113
        # InstrumentedServerProtocol is redundant too.
1111
1114
        self.server_to_client = []
1112
1115
        self.to_server = StringIO()
1113
1116
        self.to_client = StringIO()
1584
1587
        else:
1585
1588
            return self.writefile
1586
1589
 
1587
 
        
 
1590
 
1588
1591
# TODO: Client feature that does get_bundle and then installs that into a
1589
1592
# branch; this can be used in place of the regular pull/fetch operation when
1590
1593
# coming from a smart server.