#NEWLINE# def test_predict( self ) : #NEWLINE# #INDENT# np . random . seed ( 777 ) #NEWLINE# ( x , var ) = self . generate_data ( ) #NEWLINE# z = var . predict ( x ) #NEWLINE# self . assertTrue ( ( np . abs ( ( np . var ( ( x [ : , : , 100 : ] - z [ : , : , 100 : ] ) ) - 1 ) ) < 0.005 ) )