'A ``GET`` to the ``signup`` view'

def test_signup_view(self):

    response = self.client.get(reverse('userena_signup'))
    self.assertEqual(response.status_code, 200)
    self.assertTemplateUsed(response, 'userena/signup_form.html')
    self.assertTrue(isinstance(response.context['form'], forms.SignupForm))
    userena_settings.USERENA_WITHOUT_USERNAMES = True
    response = self.client.get(reverse('userena_signup'))
    self.assertTrue(isinstance(response.context['form'], forms.SignupFormOnlyEmail))
    userena_settings.USERENA_WITHOUT_USERNAMES = False
    userena_settings.USERENA_DISABLE_SIGNUP = True
    response = self.client.get(reverse('userena_signup'))
    self.assertEqual(response.status_code, 403)
    userena_settings.USERENA_DISABLE_SIGNUP = False
