def check_connect_session_fails(self, server, origin, host=None): with (self.assertRaises(HTTPError)): websocket_open(server.io_loop, ws_url(server) + "?bokeh-protocol-version=1.0&bokeh-session-id=foo", origin=origin, host=host)
def check_connect_session(self, server, origin): websocket_open(server.io_loop, ws_url(server) + "?bokeh-protocol-version=1.0&bokeh-session-id=foo", origin=origin)
def check_connect_session_fails(self, server, origin): with pytest.raises(HTTPError): websocket_open(server.io_loop, ws_url(server) + "?bokeh-protocol-version=1.0&bokeh-session-id=foo", origin=origin)
def check_connect_session_fails(self, server, origin, host=None): with (self.assertRaises(HTTPError)) as manager: websocket_open(server.io_loop, ws_url(server)+"?bokeh-protocol-version=1.0&bokeh-session-id=foo", origin=origin, host=host)
def check_connect_session(self, server, origin, host=None): websocket_open(server.io_loop, ws_url(server)+"?bokeh-protocol-version=1.0&bokeh-session-id=foo", origin=origin, host=host)
def check_connect_session_fails(self, server, origin): with pytest.raises(HTTPError): websocket_open(server.io_loop, ws_url(server)+"?bokeh-protocol-version=1.0&bokeh-session-id=foo", origin=origin)