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:
committed by
Stefan Metzmacher
parent
e5573283df
commit
485db76d84
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user