git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ba50a2
)
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
Christian Ambach
<ambi@samba.org>
Wed, 14 Sep 2016 17:31:20 +0000
(19:31 +0200)
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
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())
+