twisted.internet.test.test_tls.BadContextTestsMixin(object) class documentationtwisted.internet.test.test_tls
(View In Hierarchy)
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 getContextmethod 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 | useIt | 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 getContextmethod. |