add test for incorrect format in range host

pull/3928/head
Michael Scherer 11 years ago
parent 835fdd1ec2
commit 4f69b63fec

@ -278,6 +278,10 @@ class TestInventory(unittest.TestCase):
def test_missing_end(self):
Inventory(os.path.join(self.test_dir, 'inventory','test_missing_end'))
@raises(errors.AnsibleError)
def test_incorrect_format(self):
Inventory(os.path.join(self.test_dir, 'inventory','test_incorrect_format'))
###################################################
### Inventory API tests

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