def test_search_shards(self):
     c = BaseClient()
     h_cb = partial(
         self.handle_cb,
         **{'codes':[400, 404, 403,]}
     )
     c.search_shards(index='test', doc_type='test', cb=h_cb)
     self.wait()
Exemplo n.º 2
0
 def test_search_shards(self):
     c = BaseClient()
     h_cb = partial(
         self.handle_cb,
         **{'codes':[400, 404, 403,]}
     )
     c.search_shards(index='test', doc_type='test', callback=h_cb)
     self.wait()
Exemplo n.º 3
0
 def test_search_shards(self):
     c = BaseClient()
     c.search_shards(index='test', doc_type='test', cb=self.handle_cb)
     self.wait()