def test_get_svnames_from_tasks(self): apps = json.loads(open('tests/zdd_app_blue.json').read()) tasks = apps['apps'][0]['tasks'] task_svnames = zdd.get_svnames_from_tasks(apps, tasks) assert '10_0_6_25_16916' in task_svnames assert '10_0_6_25_31184' in task_svnames assert '10_0_6_25_23336' in task_svnames
def run(apps): tasks = apps['apps'][0]['tasks'] task_svnames = zdd.get_svnames_from_tasks(apps, tasks) assert '10_0_6_25_16916' in task_svnames assert '10_0_6_25_31184' in task_svnames assert '10_0_6_25_23336' in task_svnames