#NEWLINE# def test_patch_first_task_in_chain( self ) : #NEWLINE# #INDENT# origin_task = { #NEWLINE# #INDENT# 'id' : 'task' , #NEWLINE# 'requires' : [ ] , #NEWLINE# 'cross_depends' : [ ] , #NEWLINE# 'required_for' : [ ] , #NEWLINE# 'cross_depended_by' : [ ] , #NEWLINE# #UNINDENT# } #NEWLINE# serialized = { #NEWLINE# #INDENT# 'type' : 'puppet' , #NEWLINE# #UNINDENT# } #NEWLINE# self . processor . _convert_first_task ( serialized , self ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# 'id' : 'task_start' , #NEWLINE# 'type' : 'puppet' , #NEWLINE# 'requires' : [ ] , #NEWLINE# 'cross_depends' : [ ] , #NEWLINE# #UNINDENT# } , serialized )