#NEWLINE# def test_get_sensibleness( self ) : #NEWLINE# #INDENT# gs = simple_board ( ) #NEWLINE# pp = Preprocess ( [ 'sensibleness' ] ) #NEWLINE# feature = pp . state_to_tensor ( gs ) [ ( 0 , 0 ) ] #NEWLINE# expectation = np . zeros ( ( gs . size , gs . size ) ) #NEWLINE# for ( x , y ) in gs . get_legal_moves ( ) : #NEWLINE# #INDENT# if ( not gs . is_eye ( ( gs , y ) , go . WHITE ) ) : #NEWLINE# #INDENT# expectation [ ( x , y ) ] = 1 #NEWLINE# #UNINDENT# #UNINDENT# self . assertTrue ( np . all ( ( expectation == feature ) ) )