From 300e4516f78dbb0a9533749aa84f7e366b023d04 Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Wed, 30 Aug 2017 20:58:27 -0400 Subject: tests: fix two recently added tests for sles distro. test_set_locale_sles and test_set_locale_sles_default were incorrectly testing for truth of .uses_systemd rather than calling that function and checking its result. The error was only seen if the system running the tests was not using systemd. --- tests/unittests/test_handler/test_handler_locale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unittests/test_handler/test_handler_locale.py b/tests/unittests/test_handler/test_handler_locale.py index aaf6c762..cba5cae8 100644 --- a/tests/unittests/test_handler/test_handler_locale.py +++ b/tests/unittests/test_handler/test_handler_locale.py @@ -49,7 +49,7 @@ class TestLocale(t_help.FilesystemMockingTestCase): } cc = self._get_cloud('sles') cc_locale.handle('cc_locale', cfg, cc, LOG, []) - if cc.distro.uses_systemd: + if cc.distro.uses_systemd(): locale_conf = cc.distro.systemd_locale_conf_fn else: locale_conf = cc.distro.locale_conf_fn -- cgit v1.2.3