summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-24 17:11:41 +0200
committerChristian Poessinger <christian@poessinger.com>2020-10-24 17:13:15 +0200
commit9939139ba4ad18dc4b62a827d8ab7b74d0c28124 (patch)
tree9298af0aa0705b58228248c504409a57143efb1c /src
parent8e6f65b9f045cf2d22daa791bebd9931d51050bd (diff)
downloadvyos-1x-9939139ba4ad18dc4b62a827d8ab7b74d0c28124.tar.gz
vyos-1x-9939139ba4ad18dc4b62a827d8ab7b74d0c28124.zip
test: vyos.util: add testcase for process_named_running()
Diffstat (limited to 'src')
-rw-r--r--src/tests/test_util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/test_util.py b/src/tests/test_util.py
index 09bf947b8..44122146f 100644
--- a/src/tests/test_util.py
+++ b/src/tests/test_util.py
@@ -19,7 +19,6 @@ from unittest import TestCase
import vyos.util
-
class TestVyOSUtil(TestCase):
def setUp(self):
pass
@@ -30,3 +29,6 @@ class TestVyOSUtil(TestCase):
new_data = vyos.util.mangle_dict_keys(data, '-', '_')
self.assertEqual(new_data, expected_data)
+ def test_process_named_running(self):
+ pid = vyos.util.process_named_running('bash')
+ self.assertTrue(isinstance(pid, int))