#NEWLINE# @ pytest . mark . parametrize ( ( 'value' , 'min' , 'max' ) , [ ( 12 , 13 , 14 ) , ( 12 , None , 11 ) , ( 12 , 13 , None ) ] ) #NEWLINE# def test_returns_failed_validation_on_invalid_range( value , min , max ) : #NEWLINE# #INDENT# result = validators . between ( value , min = min , max = max ) #NEWLINE# assert isinstance ( result , validators . ValidationFailure )