#NEWLINE# @ pytest . mark . parametrize ( 'source_type' , SOURCES_POSITION_ARRAY ) #NEWLINE# def test_position_invalid3( source_type ) : #NEWLINE# #INDENT# s = source_type ( ) #NEWLINE# with pytest . raises ( ValueError ) as exc : #NEWLINE# #INDENT# s . position = np . array ( [ [ 0.0 , 1.0 , 2.0 , 4.0 ] ] ) #NEWLINE# #UNINDENT# assert ( exc . value . args [ 0 ] == 'position should be an Nx3 array' )