'Test the basic ExecutePython action.'

def testExecutePython(self):

    utils.TEST_VAL = 'original'
    python_code = "utils.TEST_VAL    =    'modified'"
    signed_blob = rdf_crypto.SignedBlob()
    signed_blob.Sign(python_code, self.signing_key)
    request = rdf_client.ExecutePythonRequest(python_code=signed_blob)
    result = self.RunAction(standard.ExecutePython, request)[0]
    self.assertTrue((result.time_used > 0))
    self.assertEqual(result.return_val, '')
    self.assertEqual(utils.TEST_VAL, 'modified')
