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