#NEWLINE# def test_ignore_NIC_id_in_meta( self ) : #NEWLINE# #INDENT# fake_id = 'some_data' #NEWLINE# meta = self . env . default_metadata ( ) #NEWLINE# self . env . set_interfaces_in_meta ( meta , [ { #NEWLINE# #INDENT# 'id' : fake_id , #NEWLINE# 'name' : 'eth0' , #NEWLINE# 'mac' : '12345' , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# node = self . env . create_node ( api = True , meta = meta ) #NEWLINE# resp = self . app . get ( reverse ( 'NodeNICsHandler' , kwargs = { #NEWLINE# #INDENT# 'node_id' : node [ 'id' ] , #NEWLINE# #UNINDENT# } ) , headers = self . default_headers ) #NEWLINE# self . assertEqual ( resp . status_code , 200 ) #NEWLINE# self . assertNotEquals ( resp . json_body [ 0 ] [ 'id' ] , meta )