#NEWLINE# @ tornado . testing . gen_test #NEWLINE# def test_autoconnect_callback( self ) : #NEWLINE# #INDENT# condition = tornado . locks . Condition ( ) #NEWLINE# c = Client ( autoconnect = True ) #NEWLINE# cb = functools . partial ( self . _test_autoconnect_callback_cb , condition ) #NEWLINE# c . async_call ( 'PING' , callback = cb ) #NEWLINE# ( yield condition . wait ( ) ) #NEWLINE# c . disconnect ( )