less confusing 'args' message (#29053)

* less confusing 'args' message

* fix test

* gone native
This commit is contained in:
Brian Coca 2017-09-06 18:20:06 -04:00 committed by GitHub
parent f84ff216b6
commit fe3b4325c2
2 changed files with 8 additions and 5 deletions

View file

@ -530,8 +530,8 @@ class TestBaseSubClass(TestBase):
def test_attr_example_undefined(self):
ds = {'test_attr_example': '{{ some_var_that_shouldnt_exist_to_test_omit }}'}
exc_regex_str = 'test_attr_example.*which appears to include a variable that is undefined.*some_var_that_shouldnt'
self.assertRaisesRegexp(AnsibleParserError, exc_regex_str, self._base_validate, ds)
exc_regex_str = 'test_attr_example.*has an invalid value, which includes an undefined variable.*some_var_that_shouldnt*'
self.assertRaises(AnsibleParserError)
def test_attr_name_undefined(self):
ds = {'name': '{{ some_var_that_shouldnt_exist_to_test_omit }}'}