mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
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
This commit is contained in:
parent
4d42497441
commit
0847f56f24
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user