def test_pushitems(self):
        with contextlib.nested(
            mock.patch.object(PushItemsServlet, "get_current_user", return_value=self.fake_request_data["user"]),
            mock.patch.object(PushItemsServlet, "async_api_call", side_effect=self.mocked_api_call),
            mock.patch.object(self, "api_response", return_value=self.fake_requests_response)
        ):
            self.fetch("/pushitems?push=%d" % self.fake_request_data["id"])
            response = self.wait()
            T.assert_in(self.fake_request_data["title"], response.body)
dataset/ETHPy150Open YelpArchive/pushmanager/pushmanager/tests/test_servlet_pushitems.py/PushsItemsServletTest.test_pushitems/original