run_must_fail
Assert that this test operation call fails.
More precisely:
Build a test block containing a single test transaction, which contains only this test operation call.
Assert that the building fails (i.e. that invoking this test transaction call results in a thrown exception).
Since
0.10.4
Assert that this test operation call fails.
More precisely:
Build a test block containing a single test transaction, which contains only this test operation call.
Assert that the building fails (i.e. that invoking this test transaction call results in a thrown exception).
Checks that the given message is a substring of the thrown message. For example my_tx.run_must_fail('out of bounds')
succeeds if an exception with message Run-time error: List index out of bounds: 0 (size 0)
is thrown.
Since
0.11.0
Parameters
the expected substring of the error message