Added unit test for running arguments through the RunnerClient

This commit is contained in:
Seth House 2014-10-02 12:00:01 -06:00
parent 6fd8615efa
commit dbe2fe5c92

View File

@ -77,6 +77,18 @@ class RunnerModuleTest(integration.ClientCase):
self.runner.cmd_async(low) self.runner.cmd_async(low)
def test_cmd_sync_w_arg(self):
low = {
'fun': 'test.arg',
'foo': 'Foo!',
'bar': 'Bar!',
}
low.update(self.eauth_creds)
ret = self.runner.cmd_sync(low)
self.assertEqual(ret['kwargs']['foo'], 'Foo!')
self.assertEqual(ret['kwargs']['bar'], 'Bar!')
if __name__ == '__main__': if __name__ == '__main__':
from integration import run_tests from integration import run_tests