#NEWLINE# def update_network_labels( self ) : #NEWLINE# #INDENT# self . assert_noobj ( Network , 'test_net' ) #NEWLINE# self . execute ( ( self . get_base_templates ( ) + self . make_nodetemplate ( 'test_net' , 'tosca.nodes.network.Network.XOS' , reqs = [ ( 'testsite_slice1' , 'tosca.relationships.MemberOfSlice' ) , ( 'Private' , 'tosca.relationships.UsesNetworkTemplate' ) ] ) ) ) #NEWLINE# net = self . assert_obj ( Network , 'test_net' , owner = self . slice1 , template = self . private , labels = None ) #NEWLINE# self . execute ( ( self . get_base_templates ( ) + self . make_nodetemplate ( 'test_net' , 'tosca.nodes.network.Network.XOS' , props = { #NEWLINE# #INDENT# 'labels' : 'testlabel' , #NEWLINE# #UNINDENT# } , reqs = [ ( 'testsite_slice1' , 'tosca.relationships.MemberOfSlice' ) , ( 'Private' , 'tosca.relationships.UsesNetworkTemplate' ) ] ) ) ) #NEWLINE# updated_net = self . assert_obj ( Network , 'test_net' , owner = self . slice1 , template = self . private , labels = 'testlabel' ) #NEWLINE# assert ( net . id == updated_net . id )