diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-22 14:28:45 -0600 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-24 01:51:02 -0600 |
commit | fb021305e4bc1175ae0d1960fbafc7eba29ef2f0 (patch) | |
tree | fd3065b1449fe0c662b52cdbfd7b1a3c7aca2997 /source4/lib/ldb/tests/python/api.py | |
parent | f053e385ff796914392d0eafa1e8756ff5ffdb18 (diff) | |
download | samba-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/python/api.py')
-rwxr-xr-x | source4/lib/ldb/tests/python/api.py | 8 |
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()) + |