

def test_signin_form_email(self):
    '\n        Test that the signin form has a different label is\n        ``USERENA_WITHOUT_USERNAME`` is set to ``True``\n\n        '
    userena_settings.USERENA_WITHOUT_USERNAMES = True
    form = forms.AuthenticationForm(data={
        'identification': 'john',
        'password': 'blowfish',
    })
    correct_label = 'Email'
    self.assertEqual(form.fields['identification'].label, correct_label)
    userena_settings.USERENA_WITHOUT_USERNAMES = False

dataset/ETHPy150Open bread-and-pepper/django-userena/userena/tests/tests_forms.py AuthenticationFormTests.test_signin_form_email/original