def mock_get(response):
def _fake_get(self, expression):<EOL><INDENT>params = self.params.copy()<EOL>params.update(expression=expression)<EOL>path = "<STR_LIT>".format(<EOL>base_url=self.base_url,<EOL>path=self.path,<EOL>)<EOL>response.url = path<EOL>return response<EOL><DEDENT>return _fake_get<EOL>
Create a method that returns the expected response.