update action unit test for powershell shebang behavior
(cherry picked from commit de549ad675
)
This commit is contained in:
parent
2398ca917f
commit
637f6f23e1
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ class TestActionBase(unittest.TestCase):
|
||||||
mock_connection.module_implementation_preferences = ('.ps1',)
|
mock_connection.module_implementation_preferences = ('.ps1',)
|
||||||
(style, shebang, data) = action_base._configure_module('stat', mock_task.args)
|
(style, shebang, data) = 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)
|
||||||
|
|
Loading…
Reference in a new issue