#NEWLINE# def test_apply_network_template( self ) : #NEWLINE# #INDENT# node = self . env . create_node ( ) #NEWLINE# template = self . env . read_fixtures ( [ 'network_template_80' ] ) [ 0 ] #NEWLINE# group_name = 'group-custom-1' #NEWLINE# with mock . patch ( 'objects.NodeGroup.get_by_uid' , return_value = NodeGroup ( name = group_name ) ) : #NEWLINE# #INDENT# objects . Node . apply_network_template ( node , template ) #NEWLINE# self . assertDictEqual ( node . network_template [ 'templates' ] , base . get_nodegroup_network_schema_template ( template , group_name ) )