mirror of
https://github.com/django/django.git
synced 2025-09-08 03:30:48 +00:00
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
This commit is contained in:
parent
4bb70cbcc6
commit
321e94fa41
185 changed files with 1216 additions and 1528 deletions
|
@ -16,7 +16,7 @@ from .models import CustomUser
|
|||
|
||||
class BasicTestCase(TestCase):
|
||||
def test_user(self):
|
||||
"Check that users can be created and can set their password"
|
||||
"Users can be created and can set their password"
|
||||
u = User.objects.create_user('testuser', 'test@example.com', 'testpw')
|
||||
self.assertTrue(u.has_usable_password())
|
||||
self.assertFalse(u.check_password('bad'))
|
||||
|
@ -77,7 +77,7 @@ class BasicTestCase(TestCase):
|
|||
self.assertEqual(str(warns[0].message), deprecation_message)
|
||||
|
||||
def test_user_no_email(self):
|
||||
"Check that users can be created without an email"
|
||||
"Users can be created without an email"
|
||||
u = User.objects.create_user('testuser1')
|
||||
self.assertEqual(u.email, '')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue