class documentation

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): (source)

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
useItA 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.