| Total Complexity | 4 |
| Total Lines | 12 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from hamcrest.core.base_matcher import BaseMatcher |
||
| 8 | class IsAnything(BaseMatcher): |
||
| 9 | |||
| 10 | def __init__(self, description): |
||
| 11 | self.description = description |
||
| 12 | if not description: |
||
| 13 | self.description = 'ANYTHING' |
||
| 14 | |||
| 15 | def _matches(self, item): |
||
| 16 | return True |
||
| 17 | |||
| 18 | def describe_to(self, description): |
||
| 19 | description.append_text(self.description) |
||
| 20 | |||
| 32 |