mirror of
https://github.com/django/django.git
synced 2025-10-29 00:26:07 +00:00
Replaced deprecated TestCase methods. Refs #17049.
This commit is contained in:
@@ -28,7 +28,7 @@ class MultiDBChangepasswordManagementCommandTestCase(TestCase):
|
||||
command.execute("joe", database='other', stdout=self.stdout)
|
||||
command_output = self.stdout.getvalue().strip()
|
||||
|
||||
self.assertEquals(command_output, "Changing password for user 'joe'\nPassword changed successfully for user 'joe'")
|
||||
self.assertEqual(command_output, "Changing password for user 'joe'\nPassword changed successfully for user 'joe'")
|
||||
self.assertTrue(models.User.objects.using('other').get(username="joe").check_password("not qwerty"))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user