Fixed the usage of the deprecated assertEquals.

This commit is contained in:
Florian Apolloner 2013-02-24 11:15:17 +01:00
parent c10ed58746
commit f56ca3f0e6
2 changed files with 4 additions and 4 deletions

View File

@ -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):

View File

@ -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())