X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/4ed5af30a93bb2840e437230e87422a8bebc9b74..75dea64c1fbf2464c489abf4611ea6952ed60f2d:/tasklib/tests.py?ds=inline 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()