From: Tomas Babej Date: Fri, 20 Feb 2015 14:56:14 +0000 (+0100) Subject: tests: Test task normalizers in more sensible way X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/67746dfc003dbe51b607268ea3138e0d3b6f9301?ds=inline;hp=--cc tests: Test task normalizers in more sensible way --- 67746dfc003dbe51b607268ea3138e0d3b6f9301 diff --git a/tasklib/tests.py b/tasklib/tests.py index ea74613..5f8bcf9 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -502,11 +502,8 @@ class TaskTest(TasklibTest): # Test that any normalizer can handle None as a valid value t = Task(self.tw) - normalizers = [getattr(t, normalizer_name) for normalizer_name in - filter(lambda x: x.startswith('normalize_'), dir(t))] - - for normalizer in normalizers: - normalizer(None) + for key in TASK_STANDARD_ATTRS: + t._normalize(key, None) def test_recurrent_task_generation(self): today = datetime.date.today()