From: Jule Anger Date: Tue, 28 Apr 2020 15:01:11 +0000 (+0200) Subject: pytdb tests: add test for storev() X-Git-Tag: ldb-2.2.0~758 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0847f56f243bc9b09cfc9b2b14c3b2454f7bdaac;p=thirdparty%2Fsamba.git pytdb tests: add test for storev() Signed-off-by: Jule Anger Reviewed-by: Ralph Boehme Reviewed-by: Volker Lendecke Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Tue May 5 11:24:52 UTC 2020 on sn-devel-184 --- diff --git a/lib/tdb/python/tests/simple.py b/lib/tdb/python/tests/simple.py index 312d587fcde..f7ab0243644 100644 --- a/lib/tdb/python/tests/simple.py +++ b/lib/tdb/python/tests/simple.py @@ -113,6 +113,10 @@ class SimpleTdbTests(TestCase): self.tdb.store(b"bar", b"bla") self.assertEqual(b"bla", self.tdb.get(b"bar")) + def test_storev(self): + self.tdb.storev(b"bar", [b"first", b"second", b"third"]) + self.assertEqual(b"firstsecondthird", self.tdb.get(b"bar")) + def test_getitem(self): self.tdb[b"bar"] = b"foo" self.tdb.reopen()