summaryrefslogtreecommitdiff
path: root/lib/tdb/python/tests/simple.py
diff options
context:
space:
mode:
authorKirill Smelkov <kirr@mns.spb.ru>2010-10-02 17:43:46 +0400
committerJelmer Vernooij <jelmer@samba.org>2010-10-02 22:40:56 +0200
commitbdd6bef5dd839ca6fb2d610b84098d2026bb6db1 (patch)
treec93c605237ba68be24888347c3eed844de463366 /lib/tdb/python/tests/simple.py
parenta29142855e3f47a86a07c520a92f73c14e2488d7 (diff)
downloadsamba-bdd6bef5dd839ca6fb2d610b84098d2026bb6db1.tar.gz
samba-bdd6bef5dd839ca6fb2d610b84098d2026bb6db1.tar.bz2
samba-bdd6bef5dd839ca6fb2d610b84098d2026bb6db1.zip
pytdb: Add support for tdb_repack()
Cc: 597386@bugs.debian.org Signed-off-by: Kirill Smelkov <kirr@landau.phys.spbu.ru> Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'lib/tdb/python/tests/simple.py')
-rw-r--r--lib/tdb/python/tests/simple.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tdb/python/tests/simple.py b/lib/tdb/python/tests/simple.py
index 18180e16bd..6386a2871f 100644
--- a/lib/tdb/python/tests/simple.py
+++ b/lib/tdb/python/tests/simple.py
@@ -142,6 +142,12 @@ class SimpleTdbTests(TestCase):
self.tdb.clear()
self.assertEquals(0, len(list(self.tdb)))
+ def test_repack(self):
+ self.tdb["foo"] = "abc"
+ self.tdb["bar"] = "def"
+ del self.tdb["foo"]
+ self.tdb.repack()
+
def test_seqnum(self):
self.tdb.enable_seqnum()
seq1 = self.tdb.seqnum