]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add a unicode test
authorRob Golding <rob@robgolding.com>
Sun, 7 Sep 2014 17:27:19 +0000 (18:27 +0100)
committerRob Golding <rob@robgolding.com>
Sun, 7 Sep 2014 17:27:19 +0000 (18:27 +0100)
tasklib/tests.py

index c738739d713a365f530ba8c7ba6d1f643cede7a4..4ff4e03e255082051b08de1067bff41c1b123659 100644 (file)
@@ -1,3 +1,5 @@
+# coding=utf-8
+
 import shutil
 import tempfile
 import unittest
 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)
         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()