Total Complexity | 4 |
Total Lines | 13 |
Duplicated Lines | 0 % |
1 | from hamcrest.core.string_description import tostring |
||
10 | class EqualityWrapper(object): |
||
11 | |||
12 | def __init__(self, matcher): |
||
13 | self.matcher = matcher |
||
14 | |||
15 | def __eq__(self, object): |
||
16 | return self.matcher.matches(object) |
||
17 | |||
18 | def __str__(self): |
||
19 | return repr(self) |
||
20 | |||
21 | def __repr__(self): |
||
22 | return tostring(self.matcher) |
||
23 | |||
43 |