

def test_hits_by_query_no_results(self):
    c = er.Classifier('queries.yaml')
    results = c.hits_by_query('this should find no bugs')
    self.assertEqual(len(results), 0)
    self.assertEqual(results.took, 53)
    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_no_results/original