dulwich.tests.test_protocol module¶
Tests for the smart protocol utility functions.
-
class
dulwich.tests.test_protocol.
BaseProtocolTests
¶ Bases:
object
-
test_eof
()¶
-
test_read_cmd
()¶
-
test_read_cmd_noend0
()¶
-
test_read_pkt_line
()¶
-
test_read_pkt_line_none
()¶
-
test_read_pkt_line_wrong_size
()¶
-
test_read_pkt_seq
()¶
-
test_send_cmd
()¶
-
test_unread_pkt_line
()¶
-
test_write_pkt_line
()¶
-
test_write_pkt_line_none
()¶
-
test_write_sideband
()¶
-
-
class
dulwich.tests.test_protocol.
BufferedPktLineWriterTests
(methodName='runTest')¶ Bases:
dulwich.tests.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
assertOutputEquals
(expected)¶
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
test_flush_empty
()¶
-
test_write
()¶
-
test_write_across_boundary
()¶
-
test_write_multiple
()¶
-
test_write_none
()¶
-
test_write_to_boundary
()¶
-
-
class
dulwich.tests.test_protocol.
CapabilitiesTestCase
(methodName='runTest')¶ Bases:
dulwich.tests.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
test_ack_type
()¶
-
test_caps
()¶
-
test_caps_want_line
()¶
-
test_plain
()¶
-
test_plain_want_line
()¶
-
-
class
dulwich.tests.test_protocol.
PktLineParserTests
(methodName='runTest')¶ Bases:
dulwich.tests.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
test_multiple_packets
()¶
-
test_none
()¶
-
test_small_fragments
()¶
-
-
class
dulwich.tests.test_protocol.
ProtocolTests
(methodName='runTest')¶ Bases:
dulwich.tests.test_protocol.BaseProtocolTests
,dulwich.tests.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
-
class
dulwich.tests.test_protocol.
ReceivableBytesIO
¶ Bases:
_io.BytesIO
BytesIO with socket-like recv semantics for testing.
-
recv
(size)¶
-
-
class
dulwich.tests.test_protocol.
ReceivableProtocolTests
(methodName='runTest')¶ Bases:
dulwich.tests.test_protocol.BaseProtocolTests
,dulwich.tests.TestCase
Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.
-
setUp
()¶ Hook method for setting up the test fixture before exercising it.
-
test_eof
()¶
-
test_mixed
()¶
-
test_read_recv
()¶
-
test_recv
()¶
-
test_recv_read
()¶
-