changed mod_args test to match connection
This commit is contained in:
parent
7a4a156d91
commit
69f380da3a
1 changed files with 3 additions and 3 deletions
|
@ -109,11 +109,11 @@ class TestModArgsDwim(unittest.TestCase):
|
|||
|
||||
def test_local_action_string(self):
|
||||
m = ModuleArgsParser(dict(local_action='copy src=a dest=b'))
|
||||
mod, args, to = m.parse()
|
||||
self._debug(mod, args, to)
|
||||
mod, args, connection = m.parse()
|
||||
self._debug(mod, args, connection)
|
||||
self.assertEqual(mod, 'copy')
|
||||
self.assertEqual(args, dict(src='a', dest='b'))
|
||||
self.assertIs(to, 'localhost')
|
||||
self.assertIs(connection, 'local')
|
||||
|
||||
def test_multiple_actions(self):
|
||||
m = ModuleArgsParser(dict(action='shell echo hi', local_action='shell echo hi'))
|
||||
|
|
Loading…
Reference in a new issue