#NEWLINE# def test_set_preempt_delay_min( self ) : #NEWLINE# #INDENT# cases = [ ( 2500 , None , None , ( 'vrrp %d preempt delay minimum 2500' % upd_vrid ) ) , ( None , None , True , ( 'default vrrp %d preempt delay minimum' % upd_vrid ) ) , ( None , True , True , ( 'default vrrp %d preempt delay minimum' % upd_vrid ) ) , ( None , True , None , ( 'no vrrp %d preempt delay minimum' % upd_vrid ) ) ] #NEWLINE# for ( preempt_delay_min , disable , default , cmd ) in cases : #NEWLINE# #INDENT# func = function ( 'set_preempt_delay_min' , upd_intf , upd_vrid , value = preempt_delay_min , disable = disable , default = default ) #NEWLINE# exp_cmds = ( [ upd_cmd ] + [ cmd ] ) #NEWLINE# self . eapi_positive_config_test ( func , exp_cmds ) #NEWLINE# #UNINDENT# cases = [ 'a' , 3601 ] #NEWLINE# for preempt_delay_min in cases : #NEWLINE# #INDENT# func = function ( 'set_preempt_delay_min' , upd_intf , upd_vrid , value = preempt_delay_min ) #NEWLINE# self . eapi_exception_config_test ( func , ValueError )