def may_give_Connection_init_kwarg_dicts(self, remote): remote.expect_sessions( Session("host1", user="******", cmd="nope"), Session("host2", cmd="nope"), ) with cd(support): _run_fab("hosts-are-init-kwargs")
def may_give_mixed_value_types(self, remote): remote.expect_sessions( Session("host1", user="******", cmd="nope"), Session("host2", cmd="nope"), ) with cd(support): _run_fab("hosts-are-mixed-values")
def multiple_strings_is_multiple_host_args(self, remote): remote.expect_sessions(Session("host1", cmd="nope"), Session("host2", cmd="nope")) with cd(support): _run_fab("two-hosts")
def multiple_hosts_works_with_remainder_too(self, remote): remote.expect_sessions(Session("host1", cmd="whoami"), Session("host2", cmd="whoami")) _run_fab("-H host1,host2 -- whoami")
def comma_separated_string_is_multiple_hosts(self, remote): remote.expect_sessions(Session("host1", cmd="nope"), Session("host2", cmd="nope")) with cd(support): _run_fab("-H host1,host2 basic-run")
def multiple_strings_is_multiple_host_args(self, remote): remote.expect_sessions(Session("host1", cmd="nope"), Session("host2", cmd="nope")) with cd(support): make_program().run("fab two-hosts")
def multiple_hosts_works_with_remainder_too(self, remote): remote.expect_sessions(Session("host1", cmd="whoami"), Session("host2", cmd="whoami")) make_program().run("fab -H host1,host2 -- whoami")