#NEWLINE# def check_update_role_no_cluster_id( self , data_to_check ) : #NEWLINE# #INDENT# self . env . create ( ) #NEWLINE# node = self . env . create_node ( api = False ) #NEWLINE# data = { #NEWLINE# #INDENT# 'id' : node . id , #NEWLINE# #UNINDENT# } #NEWLINE# data . update ( data_to_check ) #NEWLINE# resp = self . app . put ( reverse ( 'NodeCollectionHandler' ) , jsonutils . dumps ( [ data ] ) , headers = self . default_headers , expect_errors = True ) #NEWLINE# self . assertEqual ( 400 , self . status_code ) #NEWLINE# self . assertIn ( "doesn't belong to any cluster" , resp . json_body [ 'message' ] )