#NEWLINE# def test_update_pointer( self ) : #NEWLINE# #INDENT# '\n        Posting a pointer to /update (in the form {"pointer": pointer}) changes\n        the pointer we store for your UserProfile.\n        ' #NEWLINE# self . login ( 'hamlet@zulip.com' ) #NEWLINE# self . assertEqual ( get_user_profile_by_email ( 'hamlet@zulip.com' ) . pointer , ( - 1 ) ) #NEWLINE# msg_id = self . send_message ( 'othello@zulip.com' , 'Verona' , Recipient . STREAM ) #NEWLINE# result = self . client_put ( '/json/users/me/pointer' , { #NEWLINE# #INDENT# 'pointer' : msg_id , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assert_json_success ( result ) #NEWLINE# self . assertEqual ( get_user_profile_by_email ( 'hamlet@zulip.com' ) . pointer , msg_id )