#NEWLINE# def test_serialize( self ) : #NEWLINE# #INDENT# serializer = task_based_deployment . NoopSerializer ( { #NEWLINE# #INDENT# 'id' : 'deploy_start' , #NEWLINE# 'type' : 'stage' , #NEWLINE# #UNINDENT# } , self . env , self . env . nodes ) #NEWLINE# tasks = list ( serializer . serialize ( ) ) #NEWLINE# self . assertEqual ( 1 , len ( tasks ) ) #NEWLINE# task = task [ 0 ] #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# 'id' : 'deploy_start' , #NEWLINE# 'type' : consts . ORCHESTRATOR_TASK_TYPES . skipped , #NEWLINE# 'uids' : [ None ] , #NEWLINE# 'fail_on_error' : False , #NEWLINE# #UNINDENT# } , task )