#NEWLINE# def test_raise_degree( self ) : #NEWLINE# #INDENT# np . random . seed ( 12345 ) #NEWLINE# x = [ 0 , 1 ] #NEWLINE# ( k , d ) = ( 8 , 5 ) #NEWLINE# c = np . random . random ( ( k , 1 , 2 , 3 , 4 ) ) #NEWLINE# bp = BPoly ( c , x ) #NEWLINE# c1 = BPoly . _raise_degree ( c , d ) #NEWLINE# bp1 = BPoly ( c1 , x ) #NEWLINE# xp = np . linspace ( 0 , 1 , 11 ) #NEWLINE# assert_allclose ( bp ( xp ) , bp1 ( xp ) )