add a test to verify ansible detect invalid range

pull/3928/head
Michael Scherer 11 years ago
parent 7fec9c3eba
commit 2aea8a6368

@ -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

@ -0,0 +1,2 @@
[test]
host[1:2:3:4]
Loading…
Cancel
Save