commit 300e4516f78dbb0a9533749aa84f7e366b023d04 (HEAD -> master)
Author: Scott Moser <smoser@brickies.net>
Date: Wed Aug 30 20:58:27 2017 -0400
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 <distro_object>.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.
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