#NEWLINE# def test_J_DiffTooBig( self ) : #NEWLINE# #INDENT# def error_diff( self ) : #NEWLINE# #INDENT# raise abdt_exception . LargeDiffException ( 'diff too big' , 100 , 10 ) #NEWLINE# #UNINDENT# ( branch , branch_data ) = abdt_branchmock . create_simple_new_review ( ) #NEWLINE# old_diff = branch . make_raw_diff #NEWLINE# branch . make_raw_diff = types . MethodType ( error_diff , branch ) #NEWLINE# self . _process_branches ( [ branch ] ) #NEWLINE# self . assertFalse ( branch . is_status_bad_pre_review ( ) ) #NEWLINE# self . assertFalse ( branch . is_status_bad_land ( ) ) #NEWLINE# self . assertTrue ( branch . is_status_bad ( ) ) #NEWLINE# branch . make_raw_diff = old_diff #NEWLINE# branch_data . has_new_commits = True #NEWLINE# self . _process_branches ( [ branch_data ] ) #NEWLINE# self . assertFalse ( branch . is_status_bad ( ) ) #NEWLINE# self . conduit_data . accept_the_only_review ( ) #NEWLINE# self . _process_branches ( [ branch ] ) #NEWLINE# self . assertTrue ( branch . is_null ( ) )