#NEWLINE# def test_try_net_assignment_for_node_not_in_cluster( self ) : #NEWLINE# #INDENT# node = self . env . create_node ( ) #NEWLINE# resp = self . env . node_nics_put ( node . id , self . data , expect_errors = True ) #NEWLINE# self . assertEqual ( resp . status_code , 400 ) #NEWLINE# self . assertIn ( 'node is not added to any cluster' , resp . json_body [ 'message' ] )