class documentation
class BadContextTestsMixin: (source)
Known subclasses: twisted.internet.test.test_tls.SSLClientTestsMixin
, twisted.internet.test.test_tls.TLSPortTestsBuilder
Mixin for ReactorBuilder
subclasses which defines a helper for testing the handling of broken context factories.
Method | _test |
Assert that the exception raised by a broken context factory's getContext method is raised by some reactor method. If it is not, an exception will be raised to fail the test. |
Assert that the exception raised by a broken context factory's getContext method is raised by some reactor method. If it is not, an exception will be raised to fail the test.
Parameters | |
use | A two-argument callable which will be called with a reactor and a broken context factory and which is expected to raise the same exception as the broken context factory's getContext method. |