#NEWLINE# @ patch ( 'bokeh.io.get_comms' ) #NEWLINE# @ patch ( 'bokeh.io.publish_display_data' ) #NEWLINE# @ patch ( 'bokeh.io.notebook_div' ) #NEWLINE# def test_no_server( self , mock_notebook_div , mock_publish_display_data , mock_get_comms ) : #NEWLINE# #INDENT# mock_get_comms . return_value = 'comms' #NEWLINE# s = io . State ( ) #NEWLINE# mock_notebook_div . return_value = 'notebook_div' #NEWLINE# io . _show_notebook_with_state ( 'obj' , s ) #NEWLINE# self . _check_func_called ( s , ( { #NEWLINE# #INDENT# 'text/html' : 'notebook_div' , #NEWLINE# #UNINDENT# } , ) , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )