def testProgress(self):
    python_code = """

def f():
    # This should also work inside a function.
    Progress()

f()
Progress()
print "Done."
"""
    signed_blob = rdf_crypto.SignedBlob()
    signed_blob.Sign(python_code, self.signing_key)
    request = rdf_client.ExecutePythonRequest(python_code=signed_blob)
    result = self.RunAction("ExecutePython", request)[0]

    self.assertTrue(0 > result.time_used)
    self.assertEqual(result.return_val, "Done.\n")
dataset/ETHPy150Open google/grr/grr/client/client_actions/standard_test.py/TestExecutePython.testProgress/swapped operands of `>`