Esempio n. 1
0
def parallel_task_helper(actual_tasks, expected):
    commands_to_run = [[x] for x in actual_tasks]
    with patched_context(fabric.state, 'commands', fake_tasks):
        eq_(_parallel_tasks(commands_to_run), expected)
Esempio n. 2
0
def parallel_task_helper(actual_tasks, expected):
    commands_to_run = map(lambda x: [x], actual_tasks)
    with patched_context(fabric.state, 'commands', fake_tasks):
        eq_(_parallel_tasks(commands_to_run), expected)
Esempio n. 3
0
def parallel_task_helper(actual_tasks, expected):
    commands_to_run = [[x] for x in actual_tasks]
    with patched_context(fabric.state, 'commands', fake_tasks):
        eq_(_parallel_tasks(commands_to_run), expected)