From 46a238b9802462846e2df80a97e624cb48c2a6e9 Mon Sep 17 00:00:00 2001 From: Nestor Arocha Date: Sun, 25 Feb 2018 14:19:57 +0000 Subject: [PATCH] removes test warning in Python 3.5.3: DeprecationWarning: Please use assertEqual instead. --- tasklib/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasklib/tests.py b/tasklib/tests.py index e651c1f..d53fc31 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -457,24 +457,24 @@ class TaskTest(TasklibTest): t = Task(self.tw, description='test') t.save() - self.assertEquals(t['description'], 'test') + self.assertEqual(t['description'], 'test') t['description'] = 'test-modified' t.save() - self.assertEquals(t['description'], 'test-modified') + self.assertEqual(t['description'], 'test-modified') def test_modify_simple_attribute_with_space(self): # Space can pose problems with parsing t = Task(self.tw, description='test task') t.save() - self.assertEquals(t['description'], 'test task') + self.assertEqual(t['description'], 'test task') t['description'] = 'test task modified' t.save() - self.assertEquals(t['description'], 'test task modified') + self.assertEqual(t['description'], 'test task modified') def test_empty_dependency_set_of_unsaved_task(self): t = Task(self.tw, description='test task') -- 2.39.5