From dbad5d71c6af83c8995793f036896865e7bfec41 Mon Sep 17 00:00:00 2001 From: g-k-r Date: Fri, 31 Jan 2014 12:34:21 +0100 Subject: [PATCH] modifed test to use get_hosts instead of get_groups closes #5749 Conflicts: test/units/TestInventory.py --- test/units/TestInventory.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/units/TestInventory.py b/test/units/TestInventory.py index 4e188cd49bf..d7c27b38e00 100644 --- a/test/units/TestInventory.py +++ b/test/units/TestInventory.py @@ -434,8 +434,7 @@ class TestInventory(unittest.TestCase): def test_dir_inventory_multiple_groups(self): inventory = self.dir_inventory() - group_greek = inventory.get_group('greek') - group_major_god = inventory.get_group('major-god') - actual_host_names = [host.name for host in group_greek.get_hosts()]; - print "%s : %s " % (group_greek.name, actual_host_names) - assert actual_host_names == ['zeus','morpheus'] \ No newline at end of file + group_greek = inventory.get_hosts('greek') + actual_host_names = [host.name for host in group_greek]; + print "greek : %s " % (actual_host_names) + assert actual_host_names == ['zeus','morpheus']