'After a ``POST`` to the ``signup`` view a new user should be created,
the user should be logged in and redirected to the signup success page.'

def test_signup_view_success(self):

    response = self.client.post(reverse('userena_signup'), data={'username': 'alice', 'email': 'alice@example.com', 'password1': 'blueberry', 'password2': 'blueberry', 'tos': 'on'})
    self.assertRedirects(response, reverse('userena_signup_complete', kwargs={'username': 'alice'}))
    self.assertEqual(User.objects.filter(email__iexact='alice@example.com').count(), 1)
