#NEWLINE# @ fake_tasks ( recover_nodes = False ) #NEWLINE# def test_node_deletion_task_manager_invalid_cluster( self ) : #NEWLINE# #INDENT# cluster_db = self . env . create ( nodes_kwargs = [ { #NEWLINE# #INDENT# 'pending_deletion' : True , #NEWLINE# 'status' : 'ready' , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# objects . Cluster . clear_pending_changes ( cluster_db ) #NEWLINE# manager_ = manager . NodeDeletionTaskManager ( ) #NEWLINE# self . assertRaises ( errors . InvalidData , self . execute , cluster_db . nodes )