add test for missing end in host range

pull/3928/head
Michael Scherer 11 years ago
parent 2aea8a6368
commit 835fdd1ec2

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

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