1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

modifed test to use get_hosts instead of get_groups

closes #5749

Conflicts:
	test/units/TestInventory.py
This commit is contained in:
g-k-r 2014-01-31 12:34:21 +01:00 committed by Richard C Isaacson
parent 6626cb0b3d
commit dbad5d71c6

View file

@ -434,8 +434,7 @@ 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_group('greek') group_greek = inventory.get_hosts('greek')
group_major_god = inventory.get_group('major-god') actual_host_names = [host.name for host in group_greek];
actual_host_names = [host.name for host in group_greek.get_hosts()]; print "greek : %s " % (actual_host_names)
print "%s : %s " % (group_greek.name, actual_host_names) assert actual_host_names == ['zeus','morpheus']
assert actual_host_names == ['zeus','morpheus']