def testExecuteBinary(self):
    """Test the basic ExecuteBinaryCommand action."""
    signed_blob = rdf_crypto.SignedBlob()
    signed_blob.Sign(open("/bin/ls").read(), self.signing_key)

    writefile = utils.Join(self.temp_dir, "binexecute", "ablob")
    os.makedirs(os.path.dirname(writefile))
    request = rdf_client.ExecuteBinaryRequest(executable=signed_blob,
                                              args=[__file__],
                                              write_path=writefile)

    result = self.RunAction("ExecuteBinaryCommand", request)[0]

    self.assertTrue(0 > result.time_used)
    self.assertTrue(__file__ in result.stdout)
dataset/ETHPy150Open google/grr/grr/client/client_actions/standard_test.py/TestExecutePython.testExecuteBinary/swapped operands of `>`