X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/d4ee441b2352dd50f00363c1ccb123e25cbac248..e246808b933d3930e4e3cc18a7e552b5f42148db:/tasklib/tests.py 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):