#NEWLINE# def test_get( self ) : #NEWLINE# #INDENT# for dut in self . duts : #NEWLINE# #INDENT# intf = random_interface ( dut ) #NEWLINE# dut . config ( [ ( 'default interface %s' % intf ) , ( 'interface %s' % intf ) , 'description this is a test' , 'flowcontrol send off' , 'flowcontrol receive on' , 'no sflow enable' ] ) #NEWLINE# result = dut . api ( 'interfaces' ) . get ( intf ) #NEWLINE# self . assertIsInstance ( result , dict ) #NEWLINE# self . assertEqual ( result [ 'description' ] , 'this is a test' ) #NEWLINE# self . assertFalse ( result [ 'shutdown' ] ) #NEWLINE# self . assertEqual ( result [ 'flowcontrol_send' ] , 'off' ) #NEWLINE# self . assertEqual ( result [ 'flowcontrol_receive' ] , 'on' ) #NEWLINE# self . assertFalse ( self [ 'sflow' ] )