#NEWLINE# def test_currentthread_scheduleactionnested( self ) : #NEWLINE# #INDENT# scheduler = CurrentThreadScheduler ( ) #NEWLINE# ran = [ False ] #NEWLINE# def action( scheduler , state = None ) : #NEWLINE# #INDENT# def inner_action( scheduler , state = None ) : #NEWLINE# #INDENT# ran [ 0 ] = True #NEWLINE# #UNINDENT# return scheduler . schedule ( inner_action ) #NEWLINE# #UNINDENT# scheduler . schedule ( self ) #NEWLINE# assert ( ran [ 0 ] == True )