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

test that using non ordered range of char send a exception

This commit is contained in:
Michael Scherer 2013-08-23 12:58:10 +02:00
parent 4f69b63fec
commit 64d35cb3b6
2 changed files with 6 additions and 0 deletions

View file

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

View file

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