rename test class names from Test* to *Test
This commit is contained in:
parent
773dbea0fe
commit
b9d39f31a4
1 changed files with 7 additions and 7 deletions
|
@ -25,7 +25,7 @@ from managemails.models import (
|
|||
)
|
||||
|
||||
|
||||
class TestReadOnlyPasswordHashWidget(TestCase):
|
||||
class ReadOnlyPasswordHashWidgetTest(TestCase):
|
||||
def test_render(self):
|
||||
widget = ReadOnlyPasswordHashWidget()
|
||||
rendered = widget.render('password', 'secret', {'class': 'test'})
|
||||
|
@ -38,7 +38,7 @@ class TestReadOnlyPasswordHashWidget(TestCase):
|
|||
))
|
||||
|
||||
|
||||
class TestReadOnlyPasswordHashField(TestCase):
|
||||
class ReadOnlyPasswordHashFieldTest(TestCase):
|
||||
def test___init__(self):
|
||||
field = ReadOnlyPasswordHashField()
|
||||
self.assertFalse(field.required)
|
||||
|
@ -52,7 +52,7 @@ class TestReadOnlyPasswordHashField(TestCase):
|
|||
self.assertFalse(field._has_changed('new', 'old'))
|
||||
|
||||
|
||||
class TestMailboxCreationForm(TestCase):
|
||||
class MailboxCreationFormTest(TestCase):
|
||||
def test_clean_password2_same(self):
|
||||
form = MailboxCreationForm()
|
||||
form.cleaned_data = {'password1': 'secret', 'password2': 'secret'}
|
||||
|
@ -105,7 +105,7 @@ class TestMailboxCreationForm(TestCase):
|
|||
len(Mailbox.objects.filter(osuser=user)), 0)
|
||||
|
||||
|
||||
class TestMailboxChangeForm(TestCase):
|
||||
class MailboxChangeFormTest(TestCase):
|
||||
@override_settings(
|
||||
CELERY_ALWAYS_EAGER=True,
|
||||
CELERY_CACHE_BACKEND='memory',
|
||||
|
@ -119,7 +119,7 @@ class TestMailboxChangeForm(TestCase):
|
|||
self.assertEqual(form.clean_password(), mailbox.password)
|
||||
|
||||
|
||||
class TestActivationChangeMixin(TestCase):
|
||||
class ActivationChangeMixinTest(TestCase):
|
||||
def test_activate(self):
|
||||
querysetmock = Mock()
|
||||
activationchange = ActivationChangeMixin()
|
||||
|
@ -133,7 +133,7 @@ class TestActivationChangeMixin(TestCase):
|
|||
querysetmock.update.called_with(active=False)
|
||||
|
||||
|
||||
class TestMailBoxAdmin(TestCase):
|
||||
class MailBoxAdminTest(TestCase):
|
||||
def setUp(self):
|
||||
site = AdminSite()
|
||||
self.mbadmin = MailboxAdmin(Mailbox, site)
|
||||
|
@ -183,7 +183,7 @@ class TestMailBoxAdmin(TestCase):
|
|||
self.assertIsNotNone(admin_url)
|
||||
|
||||
|
||||
class TestMailAddressAdmin(TestCase):
|
||||
class MailAddressAdminTest(TestCase):
|
||||
def test_admin_for_mailaddress(self):
|
||||
admin_url = reverse('admin:managemails_mailaddress_changelist')
|
||||
self.assertIsNotNone(admin_url)
|
||||
|
|
Loading…
Reference in a new issue