def test_load_queries(self):
        queries = loader.load("queries")

        self.assertGreater(len(queries), 0)
        for q in queries:
            self.assertIsNotNone(q['bug'])
            self.assertIsNotNone(q['query'])
            # check for the allow-nonvoting flag
            if 'allow-nonvoting' in q:
                self.assertNotIn('voting:1', q['query'])
            else:
                self.assertIn('voting:1', q['query'])
dataset/ETHPy150Open openstack-infra/elastic-recheck/elastic_recheck/tests/unit/test_load_queries.py/TestLoadQueries.test_load_queries/original