[MERGE] Updates to test_smart_protocol for protocol v3 (protocol v3 patch 7/7)

Andrew Bennetts andrew at canonical.com
Thu Apr 24 00:26:17 BST 2008


This is the last in a series of patches that implement version 3 of the smart
server protocol.  The full branch with all changes combined is at
<http://people.ubuntu.com/~andrew/bzr/protocol-v3-loom/>

test_smart_transport.py
-----------------------

Another big patch, with several changes:

Adjust various tests to expect '3' rather than '2' for 'hello'.

Allow TestSmartProtocol subclasses to set the request_encoder/response_decoder
separately, rather than specifying a joint client_protocol_class.

Remove test_errors_are_logged.  It's mainly a test for test debuggability, and
difficult to make work with all 3 protocol versions, and doesn't really test as
much as it looks like.

A lot of tests moved around, and some v3 specific tests added.  I've avoided the
temptation to break this file into several pieces for now, but expect to see
that happen in the not too distant future...


-Andrew.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v3-test_smart_transport.patch
Type: text/x-diff
Size: 55349 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080424/1bfbf3cd/attachment-0002.bin 


More information about the bazaar mailing list