From 3183652e5dd661da1569c758f6a3f2fb7fe9fd27 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sun, 22 Mar 2015 22:08:36 +0100 Subject: [PATCH] tests: Add test for filtering with unicode strings --- tasklib/tests.py | 5 +++++ 1 file changed, 5 insertions(+) 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() -- 2.39.5