summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Likins <alikins@grimlock.devel.redhat.com>2008-01-23 14:19:04 (GMT)
committerAdrian Likins <alikins@grimlock.devel.redhat.com>2008-01-23 14:19:04 (GMT)
commitbf8fcc5ebd930a241ce56216e7e610d456be6a69 (patch)
tree0d81e72ef1dd6b09d1d529c0d8d33c9feae1ea02
parent383af275af983f3aceed941b457eb27fac6518d4 (diff)
downloadfunc-bf8fcc5ebd930a241ce56216e7e610d456be6a69.zip
func-bf8fcc5ebd930a241ce56216e7e610d456be6a69.tar.gz
func-bf8fcc5ebd930a241ce56216e7e610d456be6a69.tar.xz
some unit tests for the sysctl module
-rw-r--r--test/unittest/test_client.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/unittest/test_client.py b/test/unittest/test_client.py
index f201da5..d5d0e73 100644
--- a/test/unittest/test_client.py
+++ b/test/unittest/test_client.py
@@ -238,6 +238,16 @@ class TestSmart(BaseTest):
self.assert_on_fault(result)
+class TestSysctl(BaseTest):
+ module = "sysctl"
+ def test_list(self):
+ result = self.client.sysctl.list()
+ self.assert_on_fault(result)
+
+ def test_get(self):
+ result = self.client.sysctl.get("kernel.max_lock_depth")
+ self.assert_on_fault(result)
+
class TestYum(BaseTest):
module = "yumcmd"
def test_check_update(self):