Tests that f raises exactaly one AssertionError and runs f while disabling
assertion errors. This is only intended to use in a few test files that is
guaranteed that will not affect anything for convenience. It is not intended
for broader consumption outside of those test files. We do not want to
encourage this pattern.
Parameters | f | function(): * | | function with a failing assertion.
| opt_message | string= | | error message the expected error should contain
| opt_number | number= | | of time the assertion should throw. Default is 1.
|
|
---|
Returns | |
---|