#NEWLINE# def test_does_not_fail_if_there_is_deleted_task( self ) : #NEWLINE# #INDENT# for task_name in DeploymentCheckMixin . deployment_tasks : #NEWLINE# #INDENT# task = models . Task ( name = task_name , deleted_at = datetime . datetime . now ( ) , cluster_id = self . cluster . id ) #NEWLINE# db . add ( task ) #NEWLINE# db . flush ( ) #NEWLINE# self . addCleanup ( db . query ( models . Task ) . delete ) #NEWLINE# self . assertNotRaises ( errors . DeploymentAlreadyStarted , DeploymentCheckMixin . check_no_running_deployment , self . cluster )