'Sending deactivated realm emoji fails.'

def test_add_deactivated_realm_emoji(self):

    emoji = RealmEmoji.objects.get(name='green_tick')
    emoji.deactivated = True
    emoji.save(update_fields=['deactivated'])
    sender = self.example_email('hamlet')
    result = self.client_put('/api/v1/messages/1/emoji_reactions/green_tick', **self.api_auth(sender))
    self.assert_json_error(result, "Emoji    'green_tick'    does    not    exist")
