From: Rob Golding Date: Sun, 7 Sep 2014 17:27:19 +0000 (+0100) Subject: Add a unicode test X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/b1676e7ea9814bc112061aeab88d9bc9cb370dd7?ds=inline;hp=-c Add a unicode test --- b1676e7ea9814bc112061aeab88d9bc9cb370dd7 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()