Public Member Functions | |
def | __init__ (self, msg, rtol=1e-3, atol=1e-5) |
def | requireAlmostEqual (self, x, y, msg=None) |
def | checkAlmostEqual (self, x, y, msg=None) |
def | almostEqualAndThen (self, x, y, msg, k) |
def | requireEqual (self, x, y, msg=None) |
def | checkEqual (self, x, y, msg=None) |
def | equalAndThen (self, x, y, msg, k) |
def | requireMultiLineEqual (self, x, y, msg=None) |
def | multiLineEqualAndThen (self, x, y, msg, k) |
def | addErr (self, msg) |
def | fail (self) |
def | failWith (self, msg) |
def | failIfErrs (self) |
def | recover (parent_self) |
def | addErrCtxt (parent_self, msg) |
def | __enter__ (self) |
def | __exit__ (self, exc_type, exc_value, traceback) |
Public Attributes | |
msg | |
errors | |
context | |
rtol | |
atol | |
exc_class | |
An error-collecting object which supports error recovery. It is intended to be used like a context manager: >>> with Errors("Top-level error message") as errs: >>> ...
def verify.Errors.addErr | ( | self, | |
msg | |||
) |
def verify.Errors.addErrCtxt | ( | parent_self, | |
msg | |||
) |
def verify.Errors.almostEqualAndThen | ( | self, | |
x, | |||
y, | |||
msg, | |||
k | |||
) |
def verify.Errors.checkAlmostEqual | ( | self, | |
x, | |||
y, | |||
msg = None |
|||
) |
def verify.Errors.checkEqual | ( | self, | |
x, | |||
y, | |||
msg = None |
|||
) |
def verify.Errors.equalAndThen | ( | self, | |
x, | |||
y, | |||
msg, | |||
k | |||
) |
def verify.Errors.fail | ( | self | ) |
def verify.Errors.failIfErrs | ( | self | ) |
def verify.Errors.failWith | ( | self, | |
msg | |||
) |
def verify.Errors.multiLineEqualAndThen | ( | self, | |
x, | |||
y, | |||
msg, | |||
k | |||
) |
def verify.Errors.recover | ( | parent_self | ) |
def verify.Errors.requireAlmostEqual | ( | self, | |
x, | |||
y, | |||
msg = None |
|||
) |
def verify.Errors.requireEqual | ( | self, | |
x, | |||
y, | |||
msg = None |
|||
) |
def verify.Errors.requireMultiLineEqual | ( | self, | |
x, | |||
y, | |||
msg = None |
|||
) |