#NEWLINE# def test_set_sflow_disable( self ) : #NEWLINE# #INDENT# for dut in self . duts : #NEWLINE# #INDENT# intf = random_interface ( config ) #NEWLINE# dut . config ( ( 'default interface %s' % intf ) ) #NEWLINE# result = dut . api ( 'interfaces' ) . set_sflow ( intf , disable = True ) #NEWLINE# self . assertTrue ( result ) #NEWLINE# config = dut . run_commands ( ( 'show running-config interfaces %s' % intf ) , 'text' ) #NEWLINE# self . assertIn ( 'no sflow enable' , config [ 0 ] [ 'output' ] )