summaryrefslogtreecommitdiff
path: root/tests/unittests/test_handler
diff options
context:
space:
mode:
authorScott Moser <smoser@brickies.net>2017-08-30 20:58:27 -0400
committerScott Moser <smoser@brickies.net>2017-08-30 20:58:27 -0400
commit300e4516f78dbb0a9533749aa84f7e366b023d04 (patch)
tree1ac1a75e7d92bfb39fe3eaba58653804d1ddee4f /tests/unittests/test_handler
parentb931a6473ee929193c0048640bf34876ce831a15 (diff)
downloadvyos-cloud-init-300e4516f78dbb0a9533749aa84f7e366b023d04.tar.gz
vyos-cloud-init-300e4516f78dbb0a9533749aa84f7e366b023d04.zip
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.
Diffstat (limited to 'tests/unittests/test_handler')
-rw-r--r--tests/unittests/test_handler/test_handler_locale.py2
1 files changed, 1 insertions, 1 deletions
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