def check_http_gets_fail(self, server, host=None): with (self.assertRaises(HTTPError)): http_get(server.io_loop, url(server), host) with (self.assertRaises(HTTPError)): http_get(server.io_loop, url(server) + "autoload.js?bokeh-autoload-element=foo", host)
def check_http_gets(self, server): http_get(server.io_loop, url(server)) http_get(server.io_loop, url(server) + "autoload.js?bokeh-autoload-element=foo")
def check_http_gets_fail(self, server): with pytest.raises(HTTPError): http_get(server.io_loop, url(server)) with pytest.raises(HTTPError): http_get(server.io_loop, url(server) + "autoload.js?bokeh-autoload-element=foo")
def check_http_gets(self, server, host=None): http_get(server.io_loop, url(server), host) http_get(server.io_loop, url(server) + "autoload.js?bokeh-autoload-element=foo", host)
def check_http_gets_fail(self, server, host=None): with (self.assertRaises(HTTPError)) as manager: http_get(server.io_loop, url(server), host) with (self.assertRaises(HTTPError)) as manager: http_get(server.io_loop, url(server) + "autoload.js?bokeh-autoload-element=foo", host)
def check_http_gets_fail(self, server): with (self.assertRaises(HTTPError)) as manager: http_get(server.io_loop, url(server)) with (self.assertRaises(HTTPError)) as manager: http_get(server.io_loop, url(server) + "autoload.js?bokeh-autoload-element=foo")