def testTaskInvalidTaskConfig__start(self):
        data = _TASK_FILE_DATA

        open(self.task_cfg, 'w', 0).write('INVALID FILE')
        with self.assertRaises(errors.InvalidTaskConfig):
            self.task.start('test')

        open(self.task_cfg, 'w', 0).write(data.replace('task {', 'invalid {'))
        with self.assertRaises(errors.InvalidTaskConfig):
            self.task.start('test')

        open(self.task_cfg, 'w', 0).write(data.replace('{', '#'))
        with self.assertRaises(errors.InvalidTaskConfig):
            self.task.start('test')
Task.start: fails if task config for specified task is invalid.
dataset/ETHPy150Open xtrementl/focus/tests/unit/test_task.py/TestTask.testTaskInvalidTaskConfig__start