#NEWLINE# def testLargePermanentFailure( self ) : #NEWLINE# #INDENT# 'Test when DynamoDB limits the size of the traceback of a failing op.' #NEWLINE# def _BuggyOpMethod( client , callback , blob ) : #NEWLINE# #INDENT# raise Exception ( 'some permanent failure' ) #NEWLINE# #UNINDENT# op = self . _CreateTestOp ( user_id = 1 , handler = self , blob = ( 'A' * ( UserOpManager . _MAX_OPERATION_SIZE - 200 ) ) ) #NEWLINE# user_op_mgr = self . _CreateUserOpManager ( user_id = 1 , handlers = [ _BuggyOpMethod ] , callback = self . stop ) #NEWLINE# user_op_mgr . Execute ( ) #NEWLINE# self . wait ( ) #NEWLINE# Operation . Query ( self . _client , 1 , op . operation_id , None , ( lambda op : self . stop ( op ) ) ) #NEWLINE# op = self . wait ( ) #NEWLINE# self . assertIsNotNone ( op . first_failure ) #NEWLINE# self . assertIsNotNone ( op . last_failure ) #NEWLINE# self . assertLessEqual ( len ( op . first_failure ) , 100 ) #NEWLINE# self . assertLessEqual ( len ( op . last_failure ) , 100 )