#NEWLINE# def test_invalid_pattern( self , input_data , input_var , input_layer ) : #NEWLINE# #INDENT# from lasagne.layers.shape import DimshuffleLayer #NEWLINE# with pytest . raises ( ValueError ) : #NEWLINE# #INDENT# DimshuffleLayer ( input_layer , [ 'q' ] ) #NEWLINE# #UNINDENT# with pytest . raises ( ValueError ) : #NEWLINE# #INDENT# DimshuffleLayer ( input_data , [ 0 , 0 , 1 , 3 , 4 ] ) #NEWLINE# #UNINDENT# with pytest . raises ( ValueError ) : #NEWLINE# #INDENT# DimshuffleLayer ( input_layer , [ 0 , 1 , 2 , 4 , 42 ] )