diff --git a/django/contrib/auth/tests/forms.py b/django/contrib/auth/tests/forms.py index 781b917517c..7b124916839 100644 --- a/django/contrib/auth/tests/forms.py +++ b/django/contrib/auth/tests/forms.py @@ -331,7 +331,7 @@ class PasswordResetFormTest(TestCase): data = {'email': 'foo@bar.com'} form = PasswordResetForm(data) self.assertTrue(form.is_valid()) - self.assertEquals(len(mail.outbox), 0) + self.assertEqual(len(mail.outbox), 0) @override_settings( TEMPLATE_LOADERS=('django.template.loaders.filesystem.Loader',), @@ -395,7 +395,7 @@ class PasswordResetFormTest(TestCase): # The form itself is valid, but no email is sent self.assertTrue(form.is_valid()) form.save() - self.assertEquals(len(mail.outbox), 0) + self.assertEqual(len(mail.outbox), 0) class ReadOnlyPasswordHashTest(TestCase): diff --git a/tests/regressiontests/m2m_regress/tests.py b/tests/regressiontests/m2m_regress/tests.py index 90aab5e2a57..884fc097a12 100644 --- a/tests/regressiontests/m2m_regress/tests.py +++ b/tests/regressiontests/m2m_regress/tests.py @@ -106,6 +106,6 @@ class M2MRegressionTests(TestCase): hi = worksheet.lines.filter(name="hi") worksheet.lines = hi - self.assertEquals(1, worksheet.lines.count()) - self.assertEquals(1, hi.count()) + self.assertEqual(1, worksheet.lines.count()) + self.assertEqual(1, hi.count())