Commit a0b73b18 by Michael Scherer

add one last test, for combined range, which make ansible.inventory.expand_hosts

covered to 100%
parent 64d35cb3
......@@ -286,6 +286,11 @@ class TestInventory(unittest.TestCase):
def test_alpha_end_before_beg(self):
Inventory(os.path.join(self.test_dir, 'inventory','test_alpha_end_before_beg'))
def test_combined_range(self):
i = Inventory(os.path.join(self.test_dir, 'inventory','test_combined_range'))
hosts = i.list_hosts('test')
expected_hosts=['host1A','host2A','host1B','host2B']
assert sorted(hosts) == sorted(expected_hosts)
###################################################
### Inventory API tests
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment