def testTransientFailure(self):
    def _FlakyOpMethod(client, callback):
      self._method_count += 1
      if self._method_count == 1:
        raise Exception('some transient failure')
      callback()

    self._ExecuteOp(user_id=1, handler=_FlakyOpMethod, wait_for_op=False)
    self.assertEqual(self._method_count, 2)
Test op that fails once and then succeeds.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/test/op_manager_test.py/OpManagerTestCase.testTransientFailure