#NEWLINE# def test_sed_source_invalid1( self ) : #NEWLINE# #INDENT# with pytest . raises ( ValueError ) as exc : #NEWLINE# #INDENT# ( wav , nufnu ) = self . m . get_sed ( source_id = ( - 1 ) , component = 'source_emit' ) #NEWLINE# #UNINDENT# assert ( exc . value . args [ 0 ] == 'source_id should be between 0 and 1' )