Method
add_match_result
(self, field_name, expected_value, actual_value, custom_matcher=None)
Source from the content-addressed store, hash-verified
| 30 | self.unmatched_fields[field_name] = (expected_value, actual_value) |
| 31 | |
| 32 | def add_match_result(self, field_name, expected_value, actual_value, custom_matcher=None): |
| 33 | if custom_matcher: |
| 34 | matches = custom_matcher() |
| 35 | else: |
| 36 | matches = expected_value == actual_value |
| 37 | |
| 38 | if matches: |
| 39 | self.add_match() |
| 40 | else: |
| 41 | self.add_miss(field_name, expected_value, actual_value) |
| 42 | |
| 43 | |
| 44 | class _MockHandler: |
Tested by
no test coverage detected