From: Tomas Babej Date: Sun, 22 Mar 2015 21:08:36 +0000 (+0100) Subject: tests: Add test for filtering with unicode strings X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/3183652e5dd661da1569c758f6a3f2fb7fe9fd27 tests: Add test for filtering with unicode strings --- diff --git a/tasklib/tests.py b/tasklib/tests.py index 59bd78a..a78f25c 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -942,6 +942,11 @@ class UnicodeTest(TasklibTest): Task(self.tw, description="†åßk").save() self.tw.tasks.get() + def test_filter_by_unicode_task(self): + Task(self.tw, description="†åßk").save() + tasks = self.tw.tasks.filter(description="†åßk") + self.assertEqual(len(tasks), 1) + def test_non_unicode_task(self): Task(self.tw, description="test task").save() self.tw.tasks.get()