summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-01-03 01:43:51 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-01-03 02:34:05 +0100
commit22b7cb3f2905375b5a9d88d9309062ceec658540 (patch)
treed66a8c5d5f52bca003f241d2ed35509e835b257d /source4/lib/ldb/tests
parent9fc2e6c352726d9b14afb5defaee399d20cf9b23 (diff)
downloadsamba-22b7cb3f2905375b5a9d88d9309062ceec658540.tar.gz
samba-22b7cb3f2905375b5a9d88d9309062ceec658540.tar.bz2
samba-22b7cb3f2905375b5a9d88d9309062ceec658540.zip
pyldb: Fix memory reference error.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Jan 3 02:34:05 CET 2011 on sn-devel-104
Diffstat (limited to 'source4/lib/ldb/tests')
-rwxr-xr-xsource4/lib/ldb/tests/python/api.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/tests/python/api.py b/source4/lib/ldb/tests/python/api.py
index cd9651e6f6..016ccc3955 100755
--- a/source4/lib/ldb/tests/python/api.py
+++ b/source4/lib/ldb/tests/python/api.py
@@ -607,6 +607,10 @@ class MessageElementTests(unittest.TestCase):
y = ldb.MessageElement(["foo"])
self.assertEquals(y, x)
+ def test_extended(self):
+ el = ldb.MessageElement(["456"], ldb.FLAG_MOD_ADD, "bla")
+ self.assertEquals("MessageElement(['456'])", repr(el))
+
class ModuleTests(unittest.TestCase):