1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00

r26567: Allow registering new ldb modules from python.

This commit is contained in:
Jelmer Vernooij
2007-12-22 14:28:45 -06:00
committed by Stefan Metzmacher
parent e5573283df
commit 485db76d84
4 changed files with 78 additions and 21 deletions

View File

@@ -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())