#NEWLINE# @ pytest . mark . parametrize ( 'source_type' , ALL_SOURCES ) #NEWLINE# def test_temperature_invalid3( source_type ) : #NEWLINE# #INDENT# s = source_type ( ) #NEWLINE# with pytest . raises ( ValueError ) as exc : #NEWLINE# #INDENT# s . temperature = 'invalid' #NEWLINE# #UNINDENT# assert ( exc . value . args [ 0 ] == 'temperature should be a numerical value' )