def test_message_unremove(self):
        client = self.client.login(username='john', password='blowfish')

        # Delete a message as owner
        response = self.client.post(reverse('userena_umessages_unremove'),
                                    data={'message_pks': [1,]})

        self.assertRedirects(response,
                             reverse('userena_umessages_list'))

        # Delete the message as a recipient
        response = self.client.post(reverse('userena_umessages_unremove'),
                                    data={'message_pks': [2,]})

        self.assertRedirects(response,
                             reverse('userena_umessages_list'))
Unremove a message
dataset/ETHPy150Open bread-and-pepper/django-userena/userena/contrib/umessages/tests/test_views.py/MessagesViewsTests.test_message_unremove