def setUp(self): """ Python <2.7 psuedo setUpBeforeClass """ if self.__class__.configuration is None: f = open('config_test.json') self.__class__.configuration = json.loads(f.read()) f.close() if self.__class__.task is None: self.__class__.task = RemoteFileFetchTask()
def __init__(self): self.file_task = RemoteFileFetchTask() # Add tasks associated with key in JSON. self.tasks = dict({ "files": self.file_task })