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 _testBadContext 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.
def _testBadContext(self, useIt):

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.

ParametersuseItA 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.
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.