#NEWLINE# def start( self ) : #NEWLINE# #INDENT# " Setup timeout handler for detecting 'no-activity'\n            and start polling. " #NEWLINE# fail_timer = self . ioloop . add_timeout ( self . TIMEOUT , self . on_timeout ) #NEWLINE# self . addCleanup ( fail_timer . ioloop . remove_timeout , fail_timer ) #NEWLINE# self . ioloop . start ( ) #NEWLINE# self . ioloop . _poller . activate_poller . assert_called_once_with ( ) #NEWLINE# self . ioloop . _poller . deactivate_poller . assert_called_once_with ( )