UPD: dav_auth: refactor the ResetPasswordView for better name
This commit is contained in:
@@ -6,7 +6,7 @@ from django.utils.translation import ugettext
|
||||
|
||||
from dav_base.tests.generic import FormDataSet, FormsTestCase
|
||||
|
||||
from ..forms import LoginForm, SetPasswordForm, ResetPasswordForm
|
||||
from ..forms import LoginForm, SetPasswordForm, CreateAndSendPasswordForm
|
||||
|
||||
TEST_USERNAME = 'root@localhost'
|
||||
TEST_PASSWORD = u'me||ön 2'
|
||||
@@ -193,8 +193,8 @@ class SetPasswordFormTestCase(FormsTestCase):
|
||||
self.assertTrue(self.client.login(username=self.test_username, password=new_password))
|
||||
|
||||
|
||||
class ResetPasswordFormTestCase(FormsTestCase):
|
||||
form_class = ResetPasswordForm
|
||||
class CreateAndSendPasswordFormTestCase(FormsTestCase):
|
||||
form_class = CreateAndSendPasswordForm
|
||||
|
||||
valid_data_sets = (
|
||||
FormDataSet({'username': 'unittest@example.com'}),
|
||||
|
||||
Reference in New Issue
Block a user