'Test passing arguments.'

def testArgs(self):

    utils.TEST_VAL = 'original'
    python_code = "\nmagic_return_str    =    py_args['test']\nutils.TEST_VAL    =    py_args[43]\n"
    signed_blob = rdf_crypto.SignedBlob()
    signed_blob.Sign(python_code, self.signing_key)
    pdict = rdf_protodict.Dict({'test': 'dict_arg', 43: 'dict_arg2'})
    request = rdf_client.ExecutePythonRequest(python_code=signed_blob, py_args=pdict)
    result = self.RunAction(standard.ExecutePython, request)[0]
    self.assertEqual(result.return_val, 'dict_arg')
    self.assertEqual(utils.TEST_VAL, 'dict_arg2')
