
Hi, I’m running some data visualization using Bokeh on a local server like this:
from bokeh.application import Application
from bokeh.application.handlers import FunctionHandler
from bokeh.server.server import Server as bokehServer
bokehApp = Application(FunctionHandler(foo))
bokehServer = bokehServer({'/request-path': bokehApp})
bokehServer.start()
Is there a way to do some unit testing on the Application so that when I call /request-path, I can assert I get the response 200.
I know that in Tornado, I would follow something like this:
import hello
class TestHelloApp(AsyncHTTPTestCase):
def get_app(self):
return hello.make_app()
def test_homepage(self):
response = self.fetch('/')
self.assertEqual(response.code, 200)
self.assertEqual(response.body, 'Hello, world')
Thanks 

