Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the usage of the deprecated assertEquals.

  • Loading branch information...
commit f56ca3f0e6c263905e6c22fdb272f95c40c78870 1 parent c10ed58
@apollo13 apollo13 authored
View
4 django/contrib/auth/tests/forms.py
@@ -331,7 +331,7 @@ def test_nonexistant_email(self):
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 @@ def test_unusable_password(self):
# 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):
View
4 tests/regressiontests/m2m_regress/tests.py
@@ -106,6 +106,6 @@ def test_m2m_filter(self):
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())
Please sign in to comment.
Something went wrong with that request. Please try again.