mirror of
https://github.com/samba-team/samba.git
synced 2025-12-11 08:23:49 +03:00
tests/param add a test for LoadParm.log_level
Signed-off-by: Christian Ambach <ambi@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user