'The factory\'s C{log} method writes a I{combined log format} line to the
factory\'s log file.'

def test_combinedLogFormat(self):

    reactor = Clock()
    reactor.advance(1234567890)
    logPath = self.mktemp()
    factory = self.factory(logPath=logPath, reactor=reactor)
    factory.startFactory()
    try:
        factory.log(DummyRequestForLogTest(factory))
    finally:
        factory.stopFactory()
    self.assertEqual('"1.2.3.4"    -    -    [13/Feb/2009:23:31:30    +0000]    "GET    /dummy    HTTP/1.0"    123    -    "-"    "-"\n', FilePath(logPath).getContent())
