def test_update_pointer(self):
        self.login("hamlet@zulip.com")
        self.assertEqual(get_user_profile_by_email("hamlet@zulip.com").pointer, -1)
        msg_id = self.send_message("othello@zulip.com", "Verona", Recipient.STREAM)
        result = self.client_put("/json/users/me/pointer", {"pointer": msg_id})
        self.assert_json_success(result)
        self.assertEqual(get_user_profile_by_email("hamlet@zulip.com").pointer, msg_id)
Posting a pointer to /update (in the form {"pointer": pointer}) changes
dataset/ETHPy150Open zulip/zulip/zerver/tests/test_unread.py/PointerTest.test_update_pointer