X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/4156a5aba0241d879144e4791d9031a7d97c838a..b2f9a6b962ba9ef1fabd21cb0a5f2e799022e16a:/tasklib/tests.py diff --git a/tasklib/tests.py b/tasklib/tests.py index c738739..4ff4e03 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -1,3 +1,5 @@ +# coding=utf-8 + import shutil import tempfile import unittest @@ -76,3 +78,14 @@ class AnnotationTest(TasklibTest): ann = task['annotations'][0] task.remove_annotation(ann) self.assertEqual(len(task['annotations']), 0) + + +class UnicodeTest(TasklibTest): + + def test_unicode_task(self): + self.tw.execute_command(['add', '†åßk']) + self.tw.tasks.get() + + def test_non_unicode_task(self): + self.tw.execute_command(['add', 'task']) + self.tw.tasks.get()