def test_hosts_config(): c = YamlConfig() c.hosts = OrderedDict( (('boo', '*****@*****.**'), ('foo', '*****@*****.**'))) assert c.get_command_host() == '*****@*****.**' assert c.get_command_host('boo') == '*****@*****.**' assert c.get_command_host('foo') == '*****@*****.**'
def test_hosts_config(): c = YamlConfig() c.hosts = OrderedDict(( ('boo', '*****@*****.**'), ('foo', '*****@*****.**') )) assert c.get_command_host() == '*****@*****.**' assert c.get_command_host('boo') == '*****@*****.**' assert c.get_command_host('foo') == '*****@*****.**'