示例#1
0
 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")
示例#4
0
 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)
示例#5
0
 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)
示例#6
0
 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)
示例#7
0
 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")
示例#8
0
 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")
示例#9
0
 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")