Commit 30b9eec4 authored by Michal Čihař's avatar Michal Čihař

Do not use deprecated assertEquals

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent fd0ebadf
......@@ -149,14 +149,14 @@ class BillingTest(TestCase):
response = self.client.get(
reverse('invoice-download', kwargs={'pk': self.invoice.pk})
)
self.assertEquals(302, response.status_code)
self.assertEqual(302, response.status_code)
# Not owner
User.objects.create_user(username='foo', password='bar')
self.client.login(username='foo', password='bar')
response = self.client.get(
reverse('invoice-download', kwargs={'pk': self.invoice.pk})
)
self.assertEquals(403, response.status_code)
self.assertEqual(403, response.status_code)
# Owner
self.client.login(username='bill', password='kill')
response = self.client.get(
......@@ -173,11 +173,11 @@ class BillingTest(TestCase):
response = self.client.get(
reverse('invoice-download', kwargs={'pk': invoice.pk})
)
self.assertEquals(404, response.status_code)
self.assertEqual(404, response.status_code)
# Invoice with non existing file
invoice.ref = 'NON'
invoice.save()
response = self.client.get(
reverse('invoice-download', kwargs={'pk': invoice.pk})
)
self.assertEquals(404, response.status_code)
self.assertEqual(404, response.status_code)
......@@ -227,8 +227,8 @@ class ImportErrorTest(ImportBaseTest):
response = self.do_import(test_file=TEST_BADPLURALS, follow=True)
self.assertRedirects(response, self.translation_url)
messages = list(response.context["messages"])
self.assertEquals(len(messages), 1)
self.assertEquals(messages[0].level, ERROR)
self.assertEqual(len(messages), 1)
self.assertEqual(messages[0].level, ERROR)
self.assertIn("Plural forms do not match", messages[0].message)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment