'A valid ``POST`` to the signin view should redirect the user to it\'s
own profile page if no ``next`` value is supplied. Else it should
redirect to ``next``.'

def test_signin_view_success(self):

    response = self.client.post(reverse('userena_signin'), data={'identification': 'john@example.com', 'password': 'blowfish'})
    self.assertRedirects(response, reverse('userena_profile_detail', kwargs={'username': 'john'}))
    response = self.client.post(reverse('userena_signin'), data={'identification': 'john@example.com', 'password': 'blowfish', 'next': '/accounts/'})
    self.assertRedirects(response, '/accounts/')
