#NEWLINE# def test_grid_search( self ) : #NEWLINE# #INDENT# maximizer = GridSearch ( self . acquisition_func , self . X_lower , self . X_upper ) #NEWLINE# x = maximizer . maximize ( ) #NEWLINE# assert ( x . shape [ 0 ] == 1 ) #NEWLINE# assert ( x . shape [ 1 ] == self . dims ) #NEWLINE# assert np . all ( ( x [ : , 0 ] >= self . X_lower [ 0 ] ) ) #NEWLINE# assert np . all ( ( x [ : , 0 ] <= self . X_upper [ 0 ] ) ) #NEWLINE# assert np . all ( ( x < self . X_upper ) )