1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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): def test_invalid_range(self):
Inventory(os.path.join(self.test_dir, 'inventory','test_incorrect_range')) 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 ### Inventory API tests

View file

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