def test_count(self): c = BaseClient() c.count( body = '', index = 'test', doc_type = 'test', cb=self.handle_cb ) self.wait()
def test_count(self): c = BaseClient() h_cb = partial( self.handle_cb, **{'codes':[403, 404]} ) c.count( body = '', index = 'test', doc_type = 'test', cb=h_cb ) self.wait()