| Total Complexity | 4 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | if __name__ == "__main__": |
||
| 16 | class IsAnythingTest(MatcherTest): |
||
| 17 | |||
| 18 | def testAlwaysEvaluatesToTrue(self): |
||
| 19 | self.assert_matches('None', anything(), None) |
||
| 20 | self.assert_matches('object', anything(), object()) |
||
| 21 | self.assert_matches('string', anything(), 'hi') |
||
| 22 | |||
| 23 | def testHasUsefulDefaultDescription(self): |
||
| 24 | self.assert_description('ANYTHING', anything()) |
||
| 25 | |||
| 26 | def testCanOverrideDescription(self): |
||
| 27 | description = 'DESCRIPTION' |
||
| 28 | self.assert_description(description, anything(description)) |
||
| 29 | |||
| 30 | def testMatchAlwaysSucceedsSoShouldNotGenerateMismatchDescription(self): |
||
| 31 | self.assert_no_mismatch_description(anything(), 'hi') |
||
| 32 | |||
| 36 |