summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/python/tests/simple.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-19 23:36:33 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-19 23:36:33 +0200
commit1b4b8d5e78e553c759c16c1605b610498fddf77b (patch)
treee8c44f724bd99be06b6e9aa49238a2b44e56f55c /source4/lib/tdb/python/tests/simple.py
parent40b6dc1b3188bb3fee90bc0e19ed1cfa632c7ffd (diff)
downloadsamba-1b4b8d5e78e553c759c16c1605b610498fddf77b.tar.gz
samba-1b4b8d5e78e553c759c16c1605b610498fddf77b.tar.bz2
samba-1b4b8d5e78e553c759c16c1605b610498fddf77b.zip
Add __repr__ implementation for Tdb.
(This used to be commit 205699ed663a3c6d27695dee25bf26978615b475)
Diffstat (limited to 'source4/lib/tdb/python/tests/simple.py')
-rw-r--r--source4/lib/tdb/python/tests/simple.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/source4/lib/tdb/python/tests/simple.py b/source4/lib/tdb/python/tests/simple.py
index 94407b6398..7147718c91 100644
--- a/source4/lib/tdb/python/tests/simple.py
+++ b/source4/lib/tdb/python/tests/simple.py
@@ -3,8 +3,8 @@
# Note that this tests the interface of the Python bindings
# It does not test tdb itself.
#
-# Copyright (C) 2007 Jelmer Vernooij <jelmer@samba.org>
-# Published under the GNU LGPL
+# Copyright (C) 2007-2008 Jelmer Vernooij <jelmer@samba.org>
+# Published under the GNU LGPLv3 or later
import tdb
from unittest import TestCase
@@ -25,6 +25,9 @@ class SimpleTdbTests(TestCase):
def tearDown(self):
del self.tdb
+ def test_repr(self):
+ self.assertTrue(repr(self.tdb).startswith("Tdb('"))
+
def test_lockall(self):
self.tdb.lock_all()