Opened 8 years ago

Last modified 8 years ago

#6577 enhancement new

Documentation - Add example test for DatagramProtocol

Reported by: Chris Wolfe Owned by:
Priority: normal Milestone:
Component: core Keywords: Add Example Test
Cc: Branch:
Author: Chris Wolfe

Description

I had trouble figuring out how to create a unit test for a UDP protocol I had written based off of Datagram protocol.

I'd like to add the attached example test to display how to create a fake transport for the UDP protocol.

The test could be added to http://twistedmatrix.com/documents/12.3.0/core/howto/udp.html

Attachments (1)

twisted_docs.py (993 bytes) - added by Chris Wolfe 8 years ago.
An example test containing a fake transport

Download all attachments as: .zip

Change History (2)

Changed 8 years ago by Chris Wolfe

Attachment: twisted_docs.py added

An example test containing a fake transport

comment:1 Changed 8 years ago by Chris Wolfe

Summary: Add example test for DatagramProtocolDocumentation - Add example test for DatagramProtocol
Note: See TracTickets for help on using tickets.