(self)
| 166 | assert task.name == app.main + '.fun' |
| 167 | |
| 168 | def test_task_too_many_args(self): |
| 169 | with pytest.raises(TypeError): |
| 170 | self.app.task(Mock(name='fun'), True) |
| 171 | with pytest.raises(TypeError): |
| 172 | self.app.task(Mock(name='fun'), True, 1, 2) |
| 173 | |
| 174 | def test_with_config_source(self): |
| 175 | with self.Celery(config_source=ObjectConfig) as app: |