mirror of https://github.com/django/django.git
Fixed the usage of the deprecated assertEquals.
This commit is contained in:
parent
c10ed58746
commit
f56ca3f0e6
|
@ -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):
|
||||
|
|
|
@ -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())
|
||||
|
||||
|
|
Loading…
Reference in New Issue