|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Public Member Functions | |
| def | setUp (self) |
| def | tearDown (self) |
| def | logMessages (self) |
| def | assertLog (self, messages) |
Supports end-to-end unit-testing of log messages.
Sample usage:
class SampleTest(LoggingTestCase):
def test_logging_in_some_method(self):
call_some_method() # Contains calls to _log.info(), etc.
# Check the resulting log messages.
self.assertLog(["INFO: expected message #1",
"WARNING: expected message #2"]) | def webkitpy.common.system.logtesting.LoggingTestCase.assertLog | ( | self, | |
| messages | |||
| ) |
Assert the current array of log messages, and clear its contents. Args: messages: A list of log message strings.
| def webkitpy.common.system.logtesting.LoggingTestCase.logMessages | ( | self | ) |
Return the current list of log messages.
| def webkitpy.common.system.logtesting.LoggingTestCase.setUp | ( | self | ) |
| def webkitpy.common.system.logtesting.LoggingTestCase.tearDown | ( | self | ) |
1.8.13