Skip to content

Commit f56ca3f

Browse files
committed
Fixed the usage of the deprecated assertEquals.
1 parent c10ed58 commit f56ca3f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

django/contrib/auth/tests/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def test_nonexistant_email(self):
331331
data = {'email': 'foo@bar.com'}
332332
form = PasswordResetForm(data)
333333
self.assertTrue(form.is_valid())
334-
self.assertEquals(len(mail.outbox), 0)
334+
self.assertEqual(len(mail.outbox), 0)
335335

336336
@override_settings(
337337
TEMPLATE_LOADERS=('django.template.loaders.filesystem.Loader',),
@@ -395,7 +395,7 @@ def test_unusable_password(self):
395395
# The form itself is valid, but no email is sent
396396
self.assertTrue(form.is_valid())
397397
form.save()
398-
self.assertEquals(len(mail.outbox), 0)
398+
self.assertEqual(len(mail.outbox), 0)
399399

400400

401401
class ReadOnlyPasswordHashTest(TestCase):

tests/regressiontests/m2m_regress/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,6 @@ def test_m2m_filter(self):
106106
hi = worksheet.lines.filter(name="hi")
107107

108108
worksheet.lines = hi
109-
self.assertEquals(1, worksheet.lines.count())
110-
self.assertEquals(1, hi.count())
109+
self.assertEqual(1, worksheet.lines.count())
110+
self.assertEqual(1, hi.count())
111111

0 commit comments

Comments
 (0)