From 67746dfc003dbe51b607268ea3138e0d3b6f9301 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Fri, 20 Feb 2015 15:56:14 +0100 Subject: [PATCH] tests: Test task normalizers in more sensible way --- tasklib/tests.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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() -- 2.39.5