#NEWLINE# @ fake_tasks ( override_state = { #NEWLINE# #INDENT# 'progress' : 100 , #NEWLINE# 'status' : 'ready' , #NEWLINE# #UNINDENT# } ) #NEWLINE# def test_successful_deployment_drops_all_changes( self ) : #NEWLINE# #INDENT# cluster = self . env . create ( nodes_kwargs = [ { #NEWLINE# #INDENT# 'api' : True , #NEWLINE# 'pending_addition' : True , #NEWLINE# #UNINDENT# } ] ) #NEWLINE# supertask = self . env . launch_deployment ( ) #NEWLINE# self . assertEqual ( supertask . status , consts . TASK_STATUSES . ready ) #NEWLINE# cluster_db = self . db . query ( Cluster ) . get ( cluster . id ) #NEWLINE# self . assertEqual ( list ( cluster_db . changes ) , [ ] )