'Reacting to a inaccessible (for instance, private) message fails'

def test_inaccessible_message_id(self):

    pm_sender = self.example_email('hamlet')
    pm_recipient = self.example_email('othello')
    reaction_sender = self.example_email('iago')
    result = self.client_post('/api/v1/messages', {'type': 'private', 'content': 'Test    message', 'to': pm_recipient}, **self.api_auth(pm_sender))
    self.assert_json_success(result)
    content = ujson.loads(result.content)
    pm_id = content['id']
    result = self.client_put(('/api/v1/messages/%s/emoji_reactions/smile' % (pm_id,)), **self.api_auth(reaction_sender))
    self.assert_json_error(result, 'Invalid    message(s)')
