#NEWLINE# def test_cluster_has_compute_vmware_changes( self ) : #NEWLINE# #INDENT# cluster = self . env . create_cluster ( api = False ) #NEWLINE# ready_compute_vmware_node = self . env . create_node ( cluster_id = self . id , roles = [ 'compute-vmware' ] , status = consts . NODE_STATUSES . ready ) #NEWLINE# self . env . create_node ( cluster_id = cluster . id , pending_addition = True , pending_roles = [ 'controller' ] ) #NEWLINE# self . assertFalse ( objects . Cluster . has_compute_vmware_changes ( cluster ) ) #NEWLINE# pending_compute_vmware_node = self . env . create_node ( cluster_id = cluster . id , pending_roles = [ 'compute-vmware' ] ) #NEWLINE# self . assertTrue ( objects . Cluster . has_compute_vmware_changes ( cluster ) ) #NEWLINE# objects . Node . delete ( pending_compute_vmware_node ) #NEWLINE# objects . Node . update ( ready_compute_vmware_node , { #NEWLINE# #INDENT# 'pending_deletion' : True , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( objects . Cluster . has_compute_vmware_changes ( cluster ) )