Logo Search packages:      
Sourcecode: ubuntuone-dev-tools version File versions  Download package

def ubuntuone::devtools::handlers::MementoHandler::check (   self,
  level,
  msgs 
)
Verifies that the msgs are logged in the specified level.

Definition at line 39 of file handlers.py.

                                 :
        """Verifies that the msgs are logged in the specified level."""
        for rec in self.records:
            if rec.levelno == level and all(m in rec.message for m in msgs):
                return True
        if self.debug:
            recorded = [(logging.getLevelName(r.levelno), r.message)
                        for r in self.records]
            print "Memento messages:", recorded
        return False


Generated by  Doxygen 1.6.0   Back to index