'Ensure GET /users/me returns a proper pointer id after the pointer is updated'

def test_profile_with_pointer(self):

    id1 = self.send_message(self.example_email('othello'), 'Verona', Recipient.STREAM)
    id2 = self.send_message(self.example_email('othello'), 'Verona', Recipient.STREAM)
    json = self.common_get_profile('hamlet')
    self.common_update_pointer(self.example_email('hamlet'), id2)
    json = self.common_get_profile('hamlet')
    self.assertEqual(json['pointer'], id2)
    self.common_update_pointer(self.example_email('hamlet'), id1)
    json = self.common_get_profile('hamlet')
    self.assertEqual(json['pointer'], id2)
    result = self.client_post('/json/users/me/pointer', {'pointer': 99999999})
    self.assert_json_error(result, 'Invalid    message    ID')
