mirror of
https://github.com/samba-team/samba.git
synced 2025-11-26 04:23:49 +03:00
r26607: Fix reading of values and subkeys in Samba 3 registry files.
This commit is contained in:
committed by
Stefan Metzmacher
parent
c38f3c6fe9
commit
e3d7454ef7
@@ -38,6 +38,14 @@ class RegistryTestCase(unittest.TestCase):
|
||||
def test_keys(self):
|
||||
self.assertTrue("HKLM" in self.registry.keys())
|
||||
|
||||
def test_subkeys(self):
|
||||
self.assertEquals(["SOFTWARE", "SYSTEM"], self.registry.subkeys("HKLM"))
|
||||
|
||||
def test_values(self):
|
||||
self.assertEquals({'DisplayName': (1L, 'E\x00v\x00e\x00n\x00t\x00 \x00L\x00o\x00g\x00\x00\x00'),
|
||||
'ErrorControl': (4L, '\x01\x00\x00\x00')},
|
||||
self.registry.values("HKLM/SYSTEM/CURRENTCONTROLSET/SERVICES/EVENTLOG"))
|
||||
|
||||
|
||||
class PolicyTestCase(unittest.TestCase):
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user