From b1676e7ea9814bc112061aeab88d9bc9cb370dd7 Mon Sep 17 00:00:00 2001 From: Rob Golding Date: Sun, 7 Sep 2014 18:27:19 +0100 Subject: [PATCH] Add a unicode test --- tasklib/tests.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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() -- 2.39.2