TestCenter Reference
|
Public Member Functions | |
__init__ (self, warningRegExp, logErrorFunc=None, expectWarning=True) | |
handleResult (self) | |
Helper object to supress warnings. Make sure that you call handleResult() in a finally: clause. If no logErrorFunc it given, matching warnings will just be ignored, not expected, so no error will be logged if no match was found.
Definition at line 166 of file TestHelper.py.
TestSupport.TestHelper.SuppressedWarnings.__init__ | ( | self, | |
warningRegExp, | |||
logErrorFunc = None, | |||
expectWarning = True ) |
Definition at line 172 of file TestHelper.py.
References TestSupport.TestHelper.SuppressedWarnings.__enableWarningHandling(), TestSupport.TestHelper.SuppressedWarnings.__expectWarning, TestSupport.TestHelper.SuppressedErrors.__logErrorFunc, TestSupport.TestHelper.SuppressedWarnings.__logErrorFunc, TestSupport.TestHelper.ExpectInfos.__logErrorFunc, TestSupport.TestHelper.SuppressedErrors.__messageFilter, TestSupport.TestHelper.SuppressedWarnings.__messageFilter, TestSupport.TestHelper.ExpectInfos.__messageFilter, and TestSupport.TestHelper.SuppressedWarnings.__warningRegExp.
TestSupport.TestHelper.SuppressedWarnings.handleResult | ( | self | ) |
Definition at line 183 of file TestHelper.py.
References TestSupport.TestHelper.SuppressedWarnings.__enableWarningHandling(), TestSupport.TestHelper.SuppressedWarnings.__expectWarning, TestSupport.TestHelper.SuppressedErrors.__logErrorFunc, TestSupport.TestHelper.SuppressedWarnings.__logErrorFunc, TestSupport.TestHelper.ExpectInfos.__logErrorFunc, TestSupport.TestHelper.SuppressedErrors.__messageFilter, TestSupport.TestHelper.SuppressedWarnings.__messageFilter, TestSupport.TestHelper.ExpectInfos.__messageFilter, TestSupport.TestHelper.SuppressedWarnings.__warningRegExp, and TestSupport.TestHelper.regexpToString().