Package openid :: Package test :: Module support :: Class CatchLogs
[hide private]
[frames] | no frames]

Class CatchLogs

source code

object --+
         |
        CatchLogs
Known Subclasses:

Instance Methods [hide private]
 
failUnlessLogEmpty(self) source code
 
failUnlessLogMatches(self, *prefixes)
Check that the log messages contained in self.messages have prefixes in *prefixes.
source code
 
gotLogMessage(self, message) source code
 
setUp(self) source code
 
tearDown(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

failUnlessLogMatches(self, *prefixes)

source code 

Check that the log messages contained in self.messages have prefixes in *prefixes. Raise AssertionError if not, or if the number of prefixes is different than the number of log messages.