X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/c847950d26f7dbef22c998c17f7457b2cbb3c3ea..252fcc58df50a2d70aaaaf90f119d7e76da78ce3:/tasklib/tests.py?ds=inline diff --git a/tasklib/tests.py b/tasklib/tests.py index a608cf8..8fc5753 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -478,6 +478,14 @@ class AnnotationTest(TasklibTest): task.remove_annotation(ann) self.assertEqual(len(task['annotations']), 0) + def test_annotation_after_modification(self): + task = self.tw.tasks.get() + task['project'] = 'test' + task.add_annotation('I should really do this task') + self.assertEqual(task['project'], 'test') + task.save() + self.assertEqual(task['project'], 'test') + class UnicodeTest(TasklibTest):