b.t.t.TestSmartProtocolTwoSpecificsMixin(object) : class documentation

Part of bzrlib.tests.test_smart_transport View In Hierarchy

Known subclasses: bzrlib.tests.test_smart_transport.TestSmartProtocolTwoSpecifics

No class docstring
Method assertBodyStreamSerialisation Assert that body_stream is serialised as expected_serialisation.
Method assertBodyStreamRoundTrips Assert that body_stream is the same after being serialised and
Method test_body_stream_serialisation_empty A body_stream with no bytes can be serialised.
Method test_body_stream_serialisation Undocumented
Method test_body_stream_with_empty_element_serialisation A body stream can include ''.
Method test_body_stream_error_serialistion Undocumented
Method test__send_response_includes_failure_marker FailedSmartServerResponse have 'failed
Method test__send_response_includes_success_marker SuccessfulSmartServerResponse have 'success
Method test__send_response_with_body_stream_sets_finished_reading Undocumented
Method test_streamed_body_bytes Undocumented
Method test_read_streamed_body_error When a stream is interrupted by an error...
Method test_streamed_body_bytes_interrupted_connection Undocumented
Method test_client_read_response_tuple_sets_response_status Undocumented
Method test_client_read_response_tuple_raises_UnknownSmartMethod read_response_tuple raises UnknownSmartMethod if the response says
def assertBodyStreamSerialisation(self, expected_serialisation, body_stream):
Assert that body_stream is serialised as expected_serialisation.
def assertBodyStreamRoundTrips(self, body_stream):
Assert that body_stream is the same after being serialised and deserialised.
def test_body_stream_serialisation_empty(self):
A body_stream with no bytes can be serialised.
def test_body_stream_serialisation(self):
Undocumented
def test_body_stream_with_empty_element_serialisation(self):
A body stream can include ''.

The empty string can be transmitted like any other string.

def test_body_stream_error_serialistion(self):
Undocumented
def test__send_response_includes_failure_marker(self):
FailedSmartServerResponse have 'failed ' after the version.
def test__send_response_includes_success_marker(self):
SuccessfulSmartServerResponse have 'success ' after the version.
def test__send_response_with_body_stream_sets_finished_reading(self):
Undocumented
def test_streamed_body_bytes(self):
Undocumented
def test_read_streamed_body_error(self):
When a stream is interrupted by an error...
def test_streamed_body_bytes_interrupted_connection(self):
Undocumented
def test_client_read_response_tuple_sets_response_status(self):
Undocumented
def test_client_read_response_tuple_raises_UnknownSmartMethod(self):
read_response_tuple raises UnknownSmartMethod if the response says the server did not recognise the request.
API Documentation for Bazaar, generated by pydoctor at 2019-10-22 00:34:23.