def METHOD_NAME(self):
    log = snapshotlog.SnapshotLog(self.cfg)
    log.append('foo bar', 1)
    log.append('[I] 123', 1)
    log.append('[C] baz', 1)
    log.append('[E] bla', 1)
    log.flush()
    self.assertExists(self.logFile)
    self.assertEqual('\n'.join(log.get(mode = snapshotlog.LogFilter.CHANGES)), 'foo bar\n[C] baz')