Fixing test_path_which to check that the filter is available rather than results.

This commit is contained in:
Gareth J. Greenaway 2018-04-11 08:19:07 -07:00
parent 12ecfdee93
commit 2ccf2c5fe0
No known key found for this signature in database
GPG key ID: 10B62F8A7CAD7A41

View file

@ -602,12 +602,10 @@ class JinjaFiltersTest(object):
'''
test jinja filter path.which
'''
_expected = {'ret': '/usr/bin/which'}
ret = self.run_function('state.sls',
['jinja_filters.path_which'])
self.assertIn('module_|-test_|-test.echo_|-run', ret)
self.assertEqual(ret['module_|-test_|-test.echo_|-run']['changes'],
_expected)
self.assertIn('ret', ret['module_|-test_|-test.echo_|-run']['changes'])
def test_stringutils_contains_whitespace(self):
'''