#NEWLINE# def statustest_nested_functions( self ) : #NEWLINE# #INDENT# d = defer . Deferred ( ) #NEWLINE# foo = 'foostring' #NEWLINE# def nested( result ) : #NEWLINE# #INDENT# bar = 'barstring' #NEWLINE# self . assertEqual ( foo , bar ) #NEWLINE# #UNINDENT# d . addCallback ( nested ) #NEWLINE# reactor . callLater ( 0 , nested . callback , None ) #NEWLINE# return d