'``POST`` to remove a message'

def test_valid_message_remove(self):

    response = self.client.post(reverse('userena_umessages_remove'))
    self.assertEqual(response.status_code, 302)
    client = self.client.login(username='john', password='blowfish')
    response = self.client.get(reverse('userena_umessages_remove'))
    self.assertEqual(response.status_code, 405)
    response = self.client.post(reverse('userena_umessages_remove'), data={'message_pks': '1'})
    self.assertRedirects(response, reverse('userena_umessages_list'))
    msg = Message.objects.get(pk=1)
    self.assertTrue(msg.sender_deleted_at)
    client = self.client.login(username='jane', password='blowfish')
    response = self.client.post(reverse('userena_umessages_remove'), data={'message_pks': '1', 'next': reverse('userena_umessages_list')})
    self.assertRedirects(response, reverse('userena_umessages_list'))
    jane = User.objects.get(username='jane')
    mr = msg.messagerecipient_set.get(user=jane, message=msg)
    self.assertTrue(mr.deleted_at)
