|
|
@ -433,8 +433,8 @@ class TestInventory(unittest.TestCase):
|
|
|
|
assert host_vars == expected_vars
|
|
|
|
assert host_vars == expected_vars
|
|
|
|
|
|
|
|
|
|
|
|
def test_dir_inventory_multiple_groups(self):
|
|
|
|
def test_dir_inventory_multiple_groups(self):
|
|
|
|
inventory = self.dir_inventory()
|
|
|
|
inventory = self.dir_inventory()
|
|
|
|
group_greek = inventory.get_hosts('greek')
|
|
|
|
group_greek = inventory.get_hosts('greek')
|
|
|
|
actual_host_names = [host.name for host in group_greek];
|
|
|
|
actual_host_names = [host.name for host in group_greek]
|
|
|
|
print "greek : %s " % (actual_host_names)
|
|
|
|
print "greek : %s " % actual_host_names
|
|
|
|
assert actual_host_names == ['zeus','morpheus']
|
|
|
|
assert actual_host_names == ['zeus', 'morpheus']
|
|
|
|