module documentation
Test cases for twisted.names.server
.
Class |
|
Tests for server.DNSServerFactory . |
Class |
|
A partial fake dns.DNSProtocolMixin with a noop writeMessage method. |
Class |
|
A server.DNSServerFactory subclass which does not attempt to reply to any received messages. |
Class |
|
A partial fake twisted.names.cache.Cache whose methods raise an exception containing the supplied arguments. |
Class |
|
A server.DNSServerFactory subclass whose methods raise an exception containing the supplied arguments. |
Class |
|
A partial fake IProtocol whose methods raise an exception containing the supplied arguments. |
Class |
|
A partial fake IResolver whose methods raise an exception containing the supplied arguments. |
Exception |
|
An exception containing the arguments raised by raiser . |
Function | assert |
Assert that the callable logs the expected messages when called. |
Function | raiser |
Raise a RaisedArguments exception containing the supplied arguments. |
Assert that the callable logs the expected messages when called.
XXX: Put this somewhere where it can be re-used elsewhere. See #6677.
Parameters | |
testunittest.SynchronousTestCase | The test case controlling the test which triggers the logged messages and on which assertions will be called. |
expectedlist | A list of the expected log messages |
callable:callable | The function which is expected to produce the expectedMessages when called. |
*args:list | Positional arguments to be passed to callable. |
**kwargs:dict | Keyword arguments to be passed to callable. |
Raise a RaisedArguments
exception containing the supplied arguments.
Used as a fake when testing the call signatures of methods and functions.