summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-22 14:28:45 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-24 01:51:02 -0600
commitfb021305e4bc1175ae0d1960fbafc7eba29ef2f0 (patch)
treefd3065b1449fe0c662b52cdbfd7b1a3c7aca2997 /source4/lib/ldb/tests
parentf053e385ff796914392d0eafa1e8756ff5ffdb18 (diff)
downloadsamba-fb021305e4bc1175ae0d1960fbafc7eba29ef2f0.tar.gz
samba-fb021305e4bc1175ae0d1960fbafc7eba29ef2f0.tar.bz2
samba-fb021305e4bc1175ae0d1960fbafc7eba29ef2f0.zip
r26567: Allow registering new ldb modules from python.
(This used to be commit 485db76d8476fce399a9b6cb977cf55ea35ec189)
Diffstat (limited to 'source4/lib/ldb/tests')
-rwxr-xr-xsource4/lib/ldb/tests/python/api.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/lib/ldb/tests/python/api.py b/source4/lib/ldb/tests/python/api.py
index b6d6170ec2..c280a3f3c4 100755
--- a/source4/lib/ldb/tests/python/api.py
+++ b/source4/lib/ldb/tests/python/api.py
@@ -364,3 +364,11 @@ class MessageElementTests(unittest.TestCase):
def test_create_iterable(self):
x = ldb.MessageElement(["foo"])
self.assertEquals(["foo"], list(x))
+
+class ExampleModule:
+ name = "example"
+
+class ModuleTests(unittest.TestCase):
+ def test_register_module(self):
+ ldb.register_module(ExampleModule())
+