#NEWLINE# def test_request_server_info( self ) : #NEWLINE# #INDENT# application = Application ( ) #NEWLINE# with ManagedServerLoop ( application ) as server : #NEWLINE# #INDENT# session = ClientSession ( session_id = 'test_request_server_info' , websocket_url = ws_url ( server ) , io_loop = server . io_loop ) #NEWLINE# session . connect ( ) #NEWLINE# assert session . connected #NEWLINE# assert ( session . document is None ) #NEWLINE# info = session . request_server_info ( ) #NEWLINE# from bokeh import __version__ #NEWLINE# assert ( info [ 'version_info' ] [ 'bokeh' ] == __version__ ) #NEWLINE# assert ( info [ 'version_info' ] [ 'server' ] == __version__ ) #NEWLINE# session . close ( ) #NEWLINE# session . loop_until_closed ( ) #NEWLINE# assert ( not session . connected )