diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-16 11:03:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-06-16 11:03:24 +0000 |
commit | cd7009797f422a1df7e9fc1edf633a1ec6720b13 (patch) | |
tree | 623d2a0079912a23a15b28179f8fbdb7d6fc9a66 /test/test-config.py | |
parent | Releasing debian version 2.2.2-1. (diff) | |
download | nvme-stas-cd7009797f422a1df7e9fc1edf633a1ec6720b13.tar.xz nvme-stas-cd7009797f422a1df7e9fc1edf633a1ec6720b13.zip |
Merging upstream version 2.3~rc1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'test/test-config.py')
-rwxr-xr-x | test/test-config.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test-config.py b/test/test-config.py index 1480fc3..1ecae93 100755 --- a/test/test-config.py +++ b/test/test-config.py @@ -157,6 +157,11 @@ class StasProcessConfUnitTest(unittest.TestCase): self.assertRaises(KeyError, service_conf.get_option, 'Babylon', 5) + def test__parse_single_val(self): + self.assertEqual(conf._parse_single_val('hello'), 'hello') + self.assertIsNone(conf._parse_single_val(None)) + self.assertEqual(conf._parse_single_val(['hello', 'goodbye']), 'goodbye') + class StasSysConfUnitTest(unittest.TestCase): '''Sys config unit tests''' |