#NEWLINE# @ pytest . mark . parametrize ( 'value' , [ ( - 1.0 ) , ( - 0.3 ) , 1.3 , 1e+20 ] ) #NEWLINE# def test_propagation_check_frequency_invalid2( value ) : #NEWLINE# #INDENT# r = RunConf ( ) #NEWLINE# with pytest . raises ( ValueError ) as exc : #NEWLINE# #INDENT# r . set_propagation_check_frequency ( exc ) #NEWLINE# #UNINDENT# assert ( exc . value . args [ 0 ] == 'frequency should be between 0 and 1' )