#NEWLINE# def test_ison( self ) : #NEWLINE# #INDENT# bot = self . callFTU ( ) #NEWLINE# assert ( len ( bot . registry . events_re [ 'in' ] ) == 0 ) #NEWLINE# task = bot . async_cmds . ison ( 'GaWel' , timeout = 0.1 ) #NEWLINE# assert ( len ( bot . registry . events_re [ 'in' ] ) > 0 ) #NEWLINE# bot . dispatch ( ':localhost 303 me :gawel' ) #NEWLINE# bot . loop . run_until_complete ( task ) #NEWLINE# result = task . result ( ) #NEWLINE# assert ( result [ 'timeout' ] is False ) #NEWLINE# assert ( result [ 'names' ] == [ 'gawel' ] )