#NEWLINE# def test_accuracy_1( self ) : #NEWLINE# #INDENT# '\n        Extreme case with accuracy 1 and no threshold\n        ' #NEWLINE# for n in range ( 2 , 100 ) : #NEWLINE# #INDENT# y_true = np . ones ( ( n , n ) ) #NEWLINE# y_prob = ( np . ones ( ( n , n ) ) / n ) #NEWLINE# assert_equals ( accuracy . hamming_accuracy_from_blob ( y_true , y_prob ) , 1 )