#NEWLINE# def test_range_albedo_invalid2( ) : #NEWLINE# #INDENT# o = OpticalProperties ( ) #NEWLINE# with pytest . raises ( ValueError ) as exc : #NEWLINE# #INDENT# o . albedo = [ 0.0 , 0.5 , 1.1 ] #NEWLINE# #UNINDENT# assert ( o . value . args [ 0 ] == 'albedo should be in the range [0:1]' )