diff --git a/smash/web/tests/forms/test_CustomStudySubjectFieldAddForm.py b/smash/web/tests/forms/test_CustomStudySubjectFieldAddForm.py index e238aa3a5f2eff643e2b91eee188e54c37ead811..283f431e60717ae5905f2ec5b39fe840edda805d 100644 --- a/smash/web/tests/forms/test_CustomStudySubjectFieldAddForm.py +++ b/smash/web/tests/forms/test_CustomStudySubjectFieldAddForm.py @@ -38,7 +38,7 @@ class CustomStudySubjectFieldAddFormTest(TestCase): self.assertTrue(form.is_valid()) field = form.save() - self.assertEquals(1, CustomStudySubjectField.objects.filter(id=field.id).count()) - self.assertEquals(default_value, field.default_value) + self.assertEqual(1, CustomStudySubjectField.objects.filter(id=field.id).count()) + self.assertEqual(default_value, field.default_value) else: self.assertFalse(form.is_valid()) diff --git a/smash/web/tests/forms/test_CustomStudySubjectFieldEditForm.py b/smash/web/tests/forms/test_CustomStudySubjectFieldEditForm.py index 2a4bd25fef20f3ebbd368660e839db3b1cdc93bf..7436c8c6cd8e181324174d74282220ec353e62c9 100644 --- a/smash/web/tests/forms/test_CustomStudySubjectFieldEditForm.py +++ b/smash/web/tests/forms/test_CustomStudySubjectFieldEditForm.py @@ -40,6 +40,6 @@ class CustomStudySubjectFieldEditFormTest(TestCase): self.assertTrue(form.is_valid()) form.save() - self.assertEquals(default_value, field.default_value) + self.assertEqual(default_value, field.default_value) else: self.assertFalse(form.is_valid()) diff --git a/smash/web/tests/view/test_mail.py b/smash/web/tests/view/test_mail.py index c90273c97b3921d82fb3dc3a7d214d5ec22980dc..5df821de5b1219b4f475c7f3490404e8ba881846 100644 --- a/smash/web/tests/view/test_mail.py +++ b/smash/web/tests/view/test_mail.py @@ -18,7 +18,7 @@ class VirusMailTests(LoggedInTestCase): def test_empty_count_subjects(self): result = count_subjects(datetime.datetime.now() - datetime.timedelta(days=1), "Positive") - self.assertEquals(0, result) + self.assertEqual(0, result) def test_count_subjects(self): create_study_subject() @@ -35,4 +35,4 @@ class VirusMailTests(LoggedInTestCase): study_subject.set_custom_data_value(status_field, "Positive") result = count_subjects(datetime.datetime.now(), "Positive") - self.assertEquals(1, result) + self.assertEqual(1, result)