/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

Use a Registry for smart server command handlers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
944
944
 
945
945
    def build_handler(self, transport):
946
946
        """Returns a handler for the commands in protocol version one."""
947
 
        return smart.SmartServerRequestHandler(transport, vfs.vfs_commands)
 
947
        return smart.SmartServerRequestHandler(transport, request.request_handlers)
948
948
 
949
949
    def test_construct_request_handler(self):
950
950
        """Constructing a request handler should be easy and set defaults."""
1091
1091
            self.client_medium)
1092
1092
        self.smart_server = InstrumentedServerProtocol(self.server_to_client)
1093
1093
        self.smart_server_request = smart.SmartServerRequestHandler(
1094
 
            None, vfs.vfs_commands)
 
1094
            None, request.request_handlers)
1095
1095
 
1096
1096
    def assertOffsetSerialisation(self, expected_offsets, expected_serialised,
1097
1097
        client):