changed mod_args test to match connection

This commit is contained in:
Brian Coca 2015-08-19 00:34:37 -04:00
parent 7a4a156d91
commit 69f380da3a

View file

@ -109,11 +109,11 @@ class TestModArgsDwim(unittest.TestCase):
def test_local_action_string(self): def test_local_action_string(self):
m = ModuleArgsParser(dict(local_action='copy src=a dest=b')) m = ModuleArgsParser(dict(local_action='copy src=a dest=b'))
mod, args, to = m.parse() mod, args, connection = m.parse()
self._debug(mod, args, to) self._debug(mod, args, connection)
self.assertEqual(mod, 'copy') self.assertEqual(mod, 'copy')
self.assertEqual(args, dict(src='a', dest='b')) self.assertEqual(args, dict(src='a', dest='b'))
self.assertIs(to, 'localhost') self.assertIs(connection, 'local')
def test_multiple_actions(self): def test_multiple_actions(self):
m = ModuleArgsParser(dict(action='shell echo hi', local_action='shell echo hi')) m = ModuleArgsParser(dict(action='shell echo hi', local_action='shell echo hi'))