mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
test that using non ordered range of char send a exception
This commit is contained in:
@@ -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
|
||||
|
||||
2
test/inventory/test_alpha_end_before_beg
Normal file
2
test/inventory/test_alpha_end_before_beg
Normal file
@@ -0,0 +1,2 @@
|
||||
[test]
|
||||
host[Z:T]
|
||||
Reference in New Issue
Block a user