def testInvalidActiveFile__load(self):
        self.task.load()
        self.assertIsNone(self.task._name)

        open(self.task._paths['active_file'], 'w', 0).write('INVALID FILE')
        self.task.load()
        self.assertIsNone(self.task._name)

        data = _ACTIVE_FILE_DATA[:len(_ACTIVE_FILE_DATA) / 2]
        open(self.task._paths['active_file'], 'w', 0).write(data)
        self.task.load()
        self.assertIsNone(self.task._name)

        # removes active file if it was invalid
        self.assertFalse(os.path.isfile(self.task._paths['active_file']))
Task.load: will not load a task if the active file is missing or
dataset/ETHPy150Open xtrementl/focus/tests/unit/test_task.py/TestTask.testInvalidActiveFile__load