#NEWLINE# def test_get_one_custom_fields( self ) : #NEWLINE# #INDENT# port = obj_utils . create_test_port ( self . context , node_id = self . node . id ) #NEWLINE# fields = 'address,extra' #NEWLINE# data = self . get_json ( ( '/ports/%s?fields=%s' % ( port . uuid , self ) ) , headers = { #NEWLINE# #INDENT# api_base . Version . string : str ( api_v1 . MAX_VER ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertItemsEqual ( [ 'address' , 'extra' , 'links' ] , data )