diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-05-19 23:12:13 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-05-19 23:12:13 +0200 |
commit | 43a22c9b4a7868a740e2de417f50702209d2aced (patch) | |
tree | a6e819c6658a3c5e52706c230c2b56a5ccd30e5f /source4/lib/ldb/tests | |
parent | ae4611909609b8a0466938171812f10974dc054a (diff) | |
download | samba-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-x | source4/lib/ldb/tests/python/api.py | 4 |
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) |