code: def emit(self, record):
          
          self.records.append(Record(levelno=record.levelno, levelname=record.levelname,
                                     message=self.format(record)))
          return super(SetupLogChecker, self).emit(record)
docs: Store the message, not only the record.