def test_explain(self):
     c = BaseClient()
     h_cb = partial(
         self.handle_cb,
         **{'codes':[400, 404]}
     )
     c.explain('test', 'test', 'test123', cb=h_cb)
     self.wait()
    def test_explain(self):
        c = BaseClient()
        body = """
        {
            "query" : {
                "term" : { "message" : "search" }
            }
        }

        """
        h_cb = partial(
            self.handle_cb,
            **{'codes':[400, 401, 403, 404]}
        )
        c.explain('test', 'test', 'test123', body=body, cb=h_cb)
        self.wait()
Esempio n. 3
0
    def test_explain(self):
        c = BaseClient()
        body = """
        {
            "query" : {
                "term" : { "message" : "search" }
            }
        }

        """
        h_cb = partial(
            self.handle_cb,
            **{'codes':[400, 401, 403, 404]}
        )
        c.explain('test', 'test', 'test123', body=body, callback=h_cb)
        self.wait()