def test_TermQuery_simple_multi(self):
        # make sure single search returns something
        q = TermQuery("name", "joe")
        resultset_single = self.conn.search(query=q, indices=self.index_name)
        self.assertEqual(resultset_single.total, 1)

        # now check that multi query returns the same results
        resultset_multi = self.conn.search_multi([q], indices_list=[self.index_name])
        # perform the search
        resultset_multi._do_search()

        self.assertTrue(resultset_multi.valid)
        self.assertEqual(resultset_multi[0].total, 1)
        self.assertDictEqual(resultset_multi[0][0], resultset_single[0])
Find a single metering label rule
dataset/ETHPy150Open aparo/pyes/tests/test_multisearch.py/MultiSearchTestCase.test_TermQuery_simple_multi--crossover with--dataset/ETHPy150Open openstack/python-openstacksdk/openstack/network/v2/_proxy.py/Proxy.find_metering_label_rule