#NEWLINE# def test_wait_for_reactor_thread( self ) : #NEWLINE# #INDENT# '\n        The function decorated with the wait decorator is run in the reactor\n        thread.\n        ' #NEWLINE# in_call_from_thread = [ ] #NEWLINE# decorator = self . decorator ( ) #NEWLINE# @ decorator #NEWLINE# def func( ) : #NEWLINE# #INDENT# in_call_from_thread . append ( self . reactor . in_call_from_thread ) #NEWLINE# #UNINDENT# in_call_from_thread . append ( self . reactor . in_call_from_thread ) #NEWLINE# func ( ) #NEWLINE# in_call_from_thread . append ( self . reactor . in_call_from_thread ) #NEWLINE# self . assertEqual ( in_call_from_thread , [ False , True , False ] )