add test for missing end in host range

This commit is contained in:
Michael Scherer 2013-08-23 12:42:26 +02:00
parent 2aea8a6368
commit 835fdd1ec2
2 changed files with 7 additions and 0 deletions

View file

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

View file

@ -0,0 +1,2 @@
[test]
host[1:]