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
1 changed files with 2 additions and 2 deletions

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