def test_check_origin(self): ac = ActiveConnections() app = tornado.web.Application() app.active_connections = ac r = MockRequest() wh = WSHandler(app, r) assert wh.check_origin(None) assert wh.check_origin(False)
def test_check_origin(self): ac = ActiveConnections() app = tornado.web.Application() app.active_connections = ac r = MockRequest() wh = WSHandler(app, r) assert wh.check_origin(None) assert wh.check_origin(False)