def METHOD_NAME(self):
    log = snapshotlog.SnapshotLog(self.cfg)
    now = datetime.today()
    with open(self.logFile, 'wt') as f:
        f.write('foo\nbar\n')
    new = snapshots.NewSnapshot(self.cfg)
    new.makeDirs()
    new.saveToContinue = True
    log.new(now)
    log.flush()
    self.assertExists(self.logFile)
    with open(self.logFile, 'rt') as f:
        self.assertRegex(f.read(), re.compile(r'''foo