'``POST`` to the compose view'

def test_compose_post(self):

    client = self.client.login(username='john', password='blowfish')
    valid_data = {'to': 'john', 'body': 'Hi'}
    response = self.client.post(reverse('userena_umessages_compose'), data=valid_data)
    self.assertRedirects(response, reverse('userena_umessages_detail', kwargs={'username': 'john'}))
    valid_data['next'] = reverse('userena_umessages_compose')
    response = self.client.post(reverse('userena_umessages_compose'), data=valid_data)
    self.assertRedirects(response, valid_data['next'])
