def test_persistent_params(self):
        class Api(Client):

            def set_persistent_query(self, **args):
                self._persistent_query = args

            def build_request(self, resource, query):
                query.update(self._persistent_query)
                return resource, query

        api = Api(TEST_SERVER)
        result = api.tests.with_args(bar="2")
        self.assertEqual(result, '{"foo": null, "bar": "2"}')
        api.set_persistent_query(foo=42)
        result = api.tests.with_args(bar="2")
        self.assertEqual(result, '{"foo": "42", "bar": "2"}')
        result = api.tests.with_args(bar="3")
        self.assertEqual(result, '{"foo": "42", "bar": "3"}')
add foo=42 for each request
dataset/ETHPy150Open namlook/apibee/tests/test_client.py/ClientTestCase.test_persistent_params