Total Complexity | 3 |
Total Lines | 11 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | from hamcrest.core.base_matcher import BaseMatcher |
||
8 | class NeverMatch(BaseMatcher): |
||
9 | |||
10 | mismatch_description = 'NEVERMATCH' |
||
11 | |||
12 | def matches(self, item, mismatch_description=None): |
||
13 | if mismatch_description: |
||
14 | self.describe_mismatch(item, mismatch_description) |
||
15 | return False |
||
16 | |||
17 | def describe_mismatch(self, item, mismatch_description): |
||
18 | mismatch_description.append_text(NeverMatch.mismatch_description) |
||
19 |