From 0e1ff1765af6bdd907f5a3ba29aca723ebfbad31 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Thu, 30 Jun 2022 11:19:04 +0200 Subject: [PATCH] assertEquals is deprecated --- bds/tests/test_views.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bds/tests/test_views.py b/bds/tests/test_views.py index ef6139f4..332db8d7 100644 --- a/bds/tests/test_views.py +++ b/bds/tests/test_views.py @@ -31,7 +31,7 @@ class TestHomeView(TestCase): user, backend="django.contrib.auth.backends.ModelBackend" ) resp = self.client.get(reverse("bds:home")) - self.assertEquals(resp.status_code, 200) + self.assertEqual(resp.status_code, 200) class TestRegistrationView(TestCase): @@ -48,12 +48,12 @@ class TestRegistrationView(TestCase): # Logged-in but unprivileged GET client.force_login(user, backend="django.contrib.auth.backends.ModelBackend") resp = client.get(url) - self.assertEquals(resp.status_code, 403) + self.assertEqual(resp.status_code, 403) # BurĂ´ user GET give_bds_buro_permissions(user) resp = client.get(url) - self.assertEquals(resp.status_code, 200) + self.assertEqual(resp.status_code, 200) @mock.patch("gestioncof.signals.messages") def test_get(self, mock_messages): @@ -68,9 +68,9 @@ class TestRegistrationView(TestCase): # Logged-in but unprivileged GET client.force_login(user, backend="django.contrib.auth.backends.ModelBackend") resp = client.get(url) - self.assertEquals(resp.status_code, 403) + self.assertEqual(resp.status_code, 403) # BurĂ´ user GET give_bds_buro_permissions(user) resp = client.get(url) - self.assertEquals(resp.status_code, 200) + self.assertEqual(resp.status_code, 200)