class documentation
The implementation of after
.
Method | __init__ |
Undocumented |
Method | describe |
Describe the mismatching item or the exception that occurred while pre-processing it. |
Method | describe |
Create a text description of the match requirement. |
Instance Variable | f |
The function to apply. |
Instance Variable | m |
The matcher to use on the result. |
Method | _matches |
Apply the function and delegate matching on the result. |
Instance Variable | _e |
After trying to apply the function fails with an exception, the exception that was raised. This can later be used by describe_mismatch . |
Describe the mismatching item or the exception that occurred while pre-processing it.
Parameters | |
item:_A | Undocumented |
mismatchDescription | Undocumented |
Note | |
Since the exception reporting here depends on mutable state it will only work as long as PyHamcrest calls methods in the right order. The PyHamcrest Matcher interface doesn't seem to allow implementing this functionality in a more reliable way (see the implementation of assert_that ). |
After trying to apply the function fails with an exception, the exception that was raised. This can later be used by describe_mismatch
.