1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Replaced deprecated assertEquals() with assertEqual().

This commit is contained in:
Jon Dufresne 2019-10-20 22:52:17 -07:00 committed by Mariusz Felisiak
parent 1711c509fa
commit 2f72480fbd

View File

@ -40,8 +40,8 @@ class TestCharField(TestCase):
self.assertEqual(p1.title, Event.C)
self.assertEqual(p1.body, Event.F)
p2 = Post.objects.get(title='Carnival!')
self.assertEquals(p1, p2)
self.assertEquals(p2.title, Event.C)
self.assertEqual(p1, p2)
self.assertEqual(p2.title, Event.C)
class ValidationTests(SimpleTestCase):