diff --git a/roles/product_install/molecule/default/tests/test_default.py b/roles/product_install/molecule/default/tests/test_default.py index f9f37ac..1eab220 100644 --- a/roles/product_install/molecule/default/tests/test_default.py +++ b/roles/product_install/molecule/default/tests/test_default.py @@ -51,5 +51,5 @@ def test_completed_lockfile(host): def test_servicedesk_not_installed(host): plugins = host.file('/media/atl/jira/shared/plugins/installed-plugins') - assert (not plugins.exists) or ( - len(list(filter(lambda p: 'servicedesk' in p, jars))) == 0) + assert (not plugins.exists) or all( + 'servicedesk' not in plugin for plugin in plugins.listdir())