From: Nestor Arocha Date: Sun, 25 Feb 2018 14:19:57 +0000 (+0000) Subject: removes test warning X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/46a238b9802462846e2df80a97e624cb48c2a6e9?ds=sidebyside removes test warning in Python 3.5.3: DeprecationWarning: Please use assertEqual instead. --- 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')