def METHOD_NAME(self):
    lw = MockedLogWatcher('workdir/test.log', timeout=5, _reactor=self.reactor)
    d = lw.start()
    lw.dataReceived(b't' * lw.MAX_LENGTH * 2 + self.delimiter)
    lw.dataReceived(b'BuildMaster is running' + self.delimiter)
    res = yield d
    self.assertEqual(lw.printed_output, [
        'Got an a very long line in the log (length 32768 bytes), ignoring'
    ])
    self.assertEqual(res, 'buildmaster')