def testLargePermanentFailure(self):
    def _BuggyOpMethod(client, callback, blob):
      raise Exception('some permanent failure')

    op = self._CreateTestOp(user_id=1, handler=_BuggyOpMethod, blob='A' * (UserOpManager._MAX_OPERATION_SIZE - 200))
    user_op_mgr = self._CreateUserOpManager(user_id=1, handlers=[_BuggyOpMethod], callback=self.stop)
    user_op_mgr.Execute()
    self.wait()

    Operation.Query(self._client, 1, op.operation_id, None, lambda op: self.stop(op))
    op = self.wait()
    self.assertIsNotNone(op.first_failure)
    self.assertIsNotNone(op.last_failure)
    self.assertLessEqual(len(op.first_failure), 100)
    self.assertLessEqual(len(op.last_failure), 100)
Convert a list/dict of rules or a `PluralRule` object into a regular
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/test/op_manager_test.py/OpManagerTestCase.testLargePermanentFailure--crossover with--dataset/ETHPy150Open lad1337/XDM/site-packages/babel/plural.py/to_python