#NEWLINE# def test_inner( self ) : #NEWLINE# #INDENT# calls = [ ] #NEWLINE# inner = ( lambda * al : ( calls . append ( al ) or [ 'step' ] ) ) #NEWLINE# p = planning . MasterPlan ( [ inner ] ) #NEWLINE# steps = list ( p ( '<g>' , '<h>' , '<start>' , '<ctx>' ) ) #NEWLINE# self . assertEqual ( steps , [ 'step' ] ) #NEWLINE# self . assertEqual ( calls , [ ( '<g>' , '<h>' , '<start>' , '<ctx>' ) ] )