(self)
| 91 | ) |
| 92 | |
| 93 | def test_include_when_enabled(self): |
| 94 | x = self.Def(self) |
| 95 | x.create = Mock() |
| 96 | x.create.return_value = 'George' |
| 97 | assert x.include(self) |
| 98 | |
| 99 | assert x.obj == 'George' |
| 100 | x.create.assert_called_with(self) |
| 101 | |
| 102 | def test_include_when_disabled(self): |
| 103 | x = self.Def(self) |