summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-19 23:12:13 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-19 23:12:13 +0200
commit43a22c9b4a7868a740e2de417f50702209d2aced (patch)
treea6e819c6658a3c5e52706c230c2b56a5ccd30e5f /source4/lib/ldb/tests
parentae4611909609b8a0466938171812f10974dc054a (diff)
downloadsamba-43a22c9b4a7868a740e2de417f50702209d2aced.tar.gz
samba-43a22c9b4a7868a740e2de417f50702209d2aced.tar.bz2
samba-43a22c9b4a7868a740e2de417f50702209d2aced.zip
Add __repr__ implementation for Ldb.
(This used to be commit 5607aea07f66f09fd5b33842d07d2fbbf44d13e7)
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 6f073f79a8..1ae3fde744 100755
--- a/source4/lib/ldb/tests/python/api.py
+++ b/source4/lib/ldb/tests/python/api.py
@@ -36,6 +36,10 @@ class SimpleLdb(unittest.TestCase):
x = ldb.Ldb()
x.connect("foo.tdb")
+ def test_repr(self):
+ x = ldb.Ldb()
+ self.assertTrue(repr(x).startswith("<ldb connection"))
+
def test_set_create_perms(self):
x = ldb.Ldb()
x.set_create_perms(0600)