

def test_hits_by_query(self):
    c = er.Classifier('queries.yaml')
    q = 'message:"Cannot \'\'createImage\'\'" AND filename:"console.html" AND voting:1'
    results = c.hits_by_query(q)
    q.assertEqual(len(results), 20)
    self.assertEqual(results.took, 46)
    self.assertEqual(results.timed_out, False)

dataset/ETHPy150Open openstack-infra/elastic-recheck/elastic_recheck/tests/unit/test_elastic_recheck.py TestElasticRecheck.test_hits_by_query/VarMisuse@32/71 `self`->`q`