Assertion builder
The builder function or assert_
allows us to write absolutely any checks.
Arguments:
left
- actual resultright
- expected resultwhat
- any human-readable string which should describe what are you assertingoperator
- operator type ofOperators
, which will be used to compare valuesmessage
- optional error message, which will be shown when error raisedallure_message
- optional allure step message, which will be used for allure stepkeys
- used only for certain assert solutions. Ref to assert_all, assert_any
Example of assert_
usage