#NEWLINE# def test_get_deployment_tasks( self ) : #NEWLINE# #INDENT# deployment_tasks = self . env . get_default_plugin_deployment_tasks ( ) #NEWLINE# plugin_metadata = self . env . get_default_plugin_metadata ( deployment_tasks = deployment_tasks ) #NEWLINE# cluster = self . _create_cluster_with_plugins ( [ plugin_metadata ] ) #NEWLINE# cluster_deployment_tasks = objects . Cluster . get_deployment_tasks ( cluster ) #NEWLINE# tasks_ids = [ t [ 'id' ] for t in cluster_deployment_tasks ] #NEWLINE# depl_task_id = deployment_tasks [ 0 ] [ 'id' ] #NEWLINE# self . assertIn ( depl_task_id , tasks_ids ) #NEWLINE# default_tasks_count = len ( objects . Release . get_deployment_tasks ( cluster . release ) ) #NEWLINE# plugin_tasks_count = len ( plugins . adapters . wrap_plugin ( cluster . plugins [ 0 ] ) . get_deployment_tasks ( ) ) #NEWLINE# self . assertEqual ( len ( cluster_deployment_tasks ) , ( default_tasks_count + plugin_tasks_count ) )