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

update action unit test for powershell shebang behavior

This commit is contained in:
nitzmahone 2016-07-11 12:38:18 -07:00
parent 31e963dd2a
commit de549ad675

View file

@ -231,7 +231,7 @@ class TestActionBase(unittest.TestCase):
mock_connection.module_implementation_preferences = ('.ps1',) mock_connection.module_implementation_preferences = ('.ps1',)
(style, shebang, data, path) = action_base._configure_module('stat', mock_task.args) (style, shebang, data, path) = action_base._configure_module('stat', mock_task.args)
self.assertEqual(style, "new") self.assertEqual(style, "new")
self.assertEqual(shebang, None) self.assertEqual(shebang, u'#!powershell')
# test module not found # test module not found
self.assertRaises(AnsibleError, action_base._configure_module, 'badmodule', mock_task.args) self.assertRaises(AnsibleError, action_base._configure_module, 'badmodule', mock_task.args)