| Total Complexity | 2 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| 1 | from mock import Mock |
||
| 24 | class GetOrderDetailsForNotifyEventsTestCase(KakaravaaraTestsBase): |
||
| 25 | def setUp(self): |
||
| 26 | super(GetOrderDetailsForNotifyEventsTestCase, self).setUp() |
||
| 27 | self.order = Mock( |
||
| 28 | lines=LinesMock() |
||
| 29 | ) |
||
| 30 | |||
| 31 | def test_correct_string_is_returned(self): |
||
| 32 | self.assertEqual( |
||
|
1 ignored issue
–
show
|
|||
| 33 | get_order_details(self.order), |
||
| 34 | "Cool cottage\n" |
||
| 35 | " 4 nights, 3 persons, 2016-01-01 - 2016-01-05" |
||
| 37 |
It is generally discouraged to redefine built-ins as this makes code very hard to read.