Known subclasses: twisted.web.test.test_web.HTTPFactoryAccessLogTests, twisted.web.test.test_web.SiteAccessLogTests

A mixin for TestCase subclasses defining tests that apply to HTTPFactory and its subclasses.

Method factory Get the factory class to apply logging tests to.
Method test_combinedLogFormat The factory's log method writes a combined log format line to the factory's log file.
Method test_logFormatOverride If the factory is initialized with a custom log formatter then that formatter is used to generate lines for the log file.
def factory(self, *args, **kwargs):

Get the factory class to apply logging tests to.

Subclasses must override this method.

def test_combinedLogFormat(self):

The factory's log method writes a combined log format line to the factory's log file.

def test_logFormatOverride(self):

If the factory is initialized with a custom log formatter then that formatter is used to generate lines for the log file.

API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.