'Same as above, but for the API view'

def test_api_update_pointer(self):

    user = self.example_user('hamlet')
    email = user.email
    self.assertEqual(user.pointer, (-1))
    msg_id = self.send_message(self.example_email('othello'), 'Verona', Recipient.STREAM)
    result = self.client_post('/api/v1/users/me/pointer', {'pointer': msg_id}, **self.api_auth(email))
    self.assert_json_success(result)
    self.assertEqual(get_user(email, user.realm).pointer, msg_id)
