Commit 2aea8a63 by Michael Scherer

add a test to verify ansible detect invalid range

parent 7fec9c3e
......@@ -270,6 +270,9 @@ class TestInventory(unittest.TestCase):
hosts = inventory.list_hosts("nc:&triangle:!tri_c")
self.compare(hosts, ['tri_a', 'tri_b'])
@raises(errors.AnsibleError)
def test_invalid_range(self):
Inventory(os.path.join(self.test_dir, 'inventory','test_incorrect_range'))
###################################################
### 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