|
|
@ -435,6 +435,6 @@ class TestInventory(unittest.TestCase):
|
|
|
|
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']
|
|
|
|