diff --git a/test/units/TestInventory.py b/test/units/TestInventory.py index bd2f24c063b..4e188cd49bf 100644 --- a/test/units/TestInventory.py +++ b/test/units/TestInventory.py @@ -430,4 +430,12 @@ class TestInventory(unittest.TestCase): print "HOST VARS=%s" % host_vars print "EXPECTED VARS=%s" % expected_vars - assert host_vars == expected_vars \ No newline at end of file + assert host_vars == expected_vars + + 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