git.samba.org
/
ddiss
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cfa3e0f
)
tests/param add a test for LoadParm.log_level
author
Christian Ambach
<ambi@samba.org>
Tue, 13 Sep 2016 09:22:38 +0000
(11:22 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 24 Oct 2016 08:56:12 +0000
(10:56 +0200)
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit
fa56dbf6706872c5287eab082bb6ba7b5bd3ccd2
)
python/samba/tests/param.py
patch
|
blob
|
history
diff --git
a/python/samba/tests/param.py
b/python/samba/tests/param.py
index f539eba140dcfb7f3252ee8d30c77ae301aad0b9..684c17c7011d0178a77ba58edfb41f935674e84f 100644
(file)
--- a/
python/samba/tests/param.py
+++ b/
python/samba/tests/param.py
@@
-55,3
+55,9
@@
class LoadParmTestCase(samba.tests.TestCase):
samba_lp = param.LoadParm()
samba_lp.load_default()
self.assertRaises(KeyError, samba_lp.__getitem__, "nonexistent")
+
+ def test_log_level(self):
+ samba_lp = param.LoadParm()
+ samba_lp.set("log level", "5 auth:4")
+ self.assertEquals(5, samba_lp.log_level())
+