#NEWLINE# def test_async_cascade_event( self ) : #NEWLINE# #INDENT# 'Events which asynchronous handlers trigger other ones.' #NEWLINE# self . environment . context . trigger ( 'cascade_async' ) #NEWLINE# hook = self . environment . _hookmanager . hooks [ 0 ] #NEWLINE# hook . async_called . wait ( ) #NEWLINE# self . assertTrue ( hook . async_called . is_set ( ) ) #NEWLINE# self . assertTrue ( hook . environment . _hookmanager . hooks [ 0 ] . called1 )