def METHOD_NAME(self):
    import autopush
    from autopush.web.webpush import WebPushHandler
    self.conf = conf = AutopushConfig(
        hostname="localhost",
        statsd_host=None,
        use_cryptography=True,
    )
    self.fernet_mock = conf.fernet = Mock(spec=Fernet)
    self.db = db = test_db()
    self.message_mock = db._message = Mock(spec=Message)
    self.db.message_table = Mock(return_value=self.message_mock)
    self.message_mock.all_channels.return_value = (True, [dummy_chid])
    app = EndpointHTTPFactory.for_handler(WebPushHandler, conf, db=db)
    self.wp_router_mock = app.routers["webpush"] = Mock(spec=IRouter)
    self.db.router = Mock(spec=autopush.db.Router)
    self.client = Client(app)