Total Complexity | 10 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | if __name__ == "__main__": |
||
17 | class MatchEqualityWrapperTest(unittest.TestCase): |
||
18 | |||
19 | def testMatcherIsEqualWhenMatchesIsTrue(self): |
||
20 | matcher = equal_to('bar') |
||
21 | assert match_equality(matcher) == 'bar' |
||
22 | |||
23 | def testMatcherIsNotEqualWhenMatchesIsFalse(self): |
||
24 | matcher = equal_to('bar') |
||
25 | assert match_equality(matcher) != 'foo' |
||
26 | |||
27 | def testMatcherStringIsMatcherDescription(self): |
||
28 | matcher = equal_to('bar') |
||
29 | assert str(match_equality(matcher)) == tostring(matcher) |
||
30 | |||
31 | def testMatcherReprIsMatcher(self): |
||
32 | matcher = equal_to('bar') |
||
33 | assert repr(match_equality(matcher)) == tostring(matcher) |
||
34 | |||
35 | def testMatchesWhenProvidedAnObject(self): |
||
36 | assert match_equality('bar') == 'bar' |
||
37 | |||
41 |