macro_rules! assert_contains_err {
($o:tt,$p:pat) => { ... };
}Expand description
Assert that some object has a validation error which matches a specifc pattern.
This is preferred to matching on Validate::validate_and_return_first_error, since usually we don’t care about the order.