#NEWLINE# def test_no_defined_templates( self ) : #NEWLINE# #INDENT# self . nt [ 'adv_net_template' ] [ 'node_group_1' ] [ 'network_scheme' ] = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . nt [ 'adv_net_template' ] [ 'node_group_1' ] [ 'templates_for_node_role' ] = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# context = self . get_invalid_data_context ( context . nt ) #NEWLINE# self . assertEqual ( context . exception . message , 'No templates are defined for node group node_group_1' )