#NEWLINE# def test_ports_show_by_address( self ) : #NEWLINE# #INDENT# port = self . mgr . get_by_address ( PORT [ 'address' ] ) #NEWLINE# expect = [ ( 'GET' , ( '/v1/ports/detail?address=%s' % PORT [ 'address' ] ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , None ) ] #NEWLINE# self . assertEqual ( expect , port . api . calls ) #NEWLINE# self . assertEqual ( PORT [ 'uuid' ] , port . uuid ) #NEWLINE# self . assertEqual ( PORT [ 'address' ] , port . address ) #NEWLINE# self . assertEqual ( PORT [ 'node_uuid' ] , port . node_uuid )