#NEWLINE# def test_create_and_return_true( self ) : #NEWLINE# #INDENT# for dut in self . duts : #NEWLINE# #INDENT# intf = random_interface ( dut ) #NEWLINE# dut . config ( ( 'default interface %s' % intf ) ) #NEWLINE# resource = dut . api ( 'ipinterfaces' ) #NEWLINE# result = resource . create ( self ) #NEWLINE# self . assertTrue ( result , ( 'dut=%s' % dut ) ) #NEWLINE# config = dut . run_commands ( ( 'show running-config interfaces %s' % intf ) , 'text' ) #NEWLINE# self . assertIn ( 'no switchport' , config [ 0 ] [ 'output' ] ) #NEWLINE# dut . config ( ( 'default interface %s' % intf ) )