diff options
author | Jule Anger <ja@sernet.de> | 2020-04-28 17:01:11 +0200 |
---|---|---|
committer | Ralph Boehme <slow@samba.org> | 2020-05-05 11:24:52 +0000 |
commit | 0847f56f243bc9b09cfc9b2b14c3b2454f7bdaac (patch) | |
tree | c967b43c00604a7e140145c73bf52affd9eaeccf /lib/tdb | |
parent | 4d42497441c8e5308c6578845c3c5e858bc63fbf (diff) | |
download | samba-0847f56f243bc9b09cfc9b2b14c3b2454f7bdaac.tar.gz |
pytdb tests: add test for storev()
Signed-off-by: Jule Anger <ja@sernet.de>
Reviewed-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue May 5 11:24:52 UTC 2020 on sn-devel-184
Diffstat (limited to 'lib/tdb')
-rw-r--r-- | lib/tdb/python/tests/simple.py | 4 |
1 files changed, 4 insertions, 0 deletions
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() |