summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/tests/samba3.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-26 20:55:05 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-26 15:03:02 -0600
commitc4d3666ac2821518be57ca89d963f77bbddaedf4 (patch)
treedc7cdeb6ff096808c98688541abdbaa33c344abf /source4/scripting/python/samba/tests/samba3.py
parente0132b560257fd9b8562fbe378604e446d3153f3 (diff)
downloadsamba-c4d3666ac2821518be57ca89d963f77bbddaedf4.tar.gz
samba-c4d3666ac2821518be57ca89d963f77bbddaedf4.tar.xz
samba-c4d3666ac2821518be57ca89d963f77bbddaedf4.zip
r26607: Fix reading of values and subkeys in Samba 3 registry files.
(This used to be commit e3d7454ef70d6fe9a1ce34eaf57268bd5b713ccf)
Diffstat (limited to 'source4/scripting/python/samba/tests/samba3.py')
-rw-r--r--source4/scripting/python/samba/tests/samba3.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/scripting/python/samba/tests/samba3.py b/source4/scripting/python/samba/tests/samba3.py
index 580bcfa3c20..e25562929a7 100644
--- a/source4/scripting/python/samba/tests/samba3.py
+++ b/source4/scripting/python/samba/tests/samba3.py
@@ -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):