twisted.internet.test.test_udp_internals.StringUDPSocket(object)
class documentationtwisted.internet.test.test_udp_internals
(View In Hierarchy)
A fake UDP socket object, which returns a fixed sequence of strings and/or socket errors. Useful for testing.
Instance Variable | retvals | A list containing either strings or
socket.error s. |
Instance Variable | connectedAddr | The address the socket is connected to. |
Method | __init__ | Undocumented |
Method | connect | Undocumented |
Method | recvfrom | Return (or raise) the next value from self.retvals . |