Total Complexity | 3 |
Total Lines | 11 |
Duplicated Lines | 0 % |
1 | import sys |
||
8 | class ExampleWithAssertThat(unittest.TestCase): |
||
9 | def testUsingAssertThat(self): |
||
10 | assert_that('xx', is_('xx')) |
||
11 | assert_that('yy', is_not('xx')) |
||
12 | assert_that('i like cheese', contains_string('cheese')) |
||
13 | |||
14 | def testCanAlsoSupplyDescriptiveReason(self): |
||
15 | assert_that('xx', is_('xx'), 'description') |
||
16 | |||
17 | def testCanAlsoAssertPlainBooleans(self): |
||
18 | assert_that(True, 'This had better not fail') |
||
19 | |||
23 |