#NEWLINE# def test_set_enable( self ) : #NEWLINE# #INDENT# cases = [ ( False , ( 'vrrp %d shutdown' % upd_vrid ) ) , ( True , ( 'no vrrp %d shutdown' % upd_vrid ) ) ] #NEWLINE# for ( enable , cmd ) in cases : #NEWLINE# #INDENT# func = function ( 'set_enable' , upd_intf , upd_vrid , value = enable ) #NEWLINE# exp_cmds = ( [ upd_cmd ] + [ cmd ] ) #NEWLINE# self . eapi_positive_config_test ( func , exp_cmds ) #NEWLINE# #UNINDENT# cases = [ 'a' , 200 ] #NEWLINE# for enable in cases : #NEWLINE# #INDENT# func = function ( 'set_enable' , upd_intf , upd_vrid , value = enable ) #NEWLINE# self . eapi_exception_config_test ( func , ValueError )