mirror of
https://github.com/samba-team/samba.git
synced 2025-12-14 20:23:54 +03:00
r26586: Rename fetch to get for consistency with the Python dictionary interface.
This commit is contained in:
committed by
Stefan Metzmacher
parent
231ec0777b
commit
fadab7c60b
@@ -44,9 +44,9 @@ class SimpleTdbTests(TestCase):
|
||||
|
||||
def test_store(self):
|
||||
self.tdb.store("bar", "bla")
|
||||
self.assertEquals("bla", self.tdb.fetch("bar"))
|
||||
self.assertEquals("bla", self.tdb.get("bar"))
|
||||
|
||||
def test_fetch(self):
|
||||
def test_getitem(self):
|
||||
self.tdb["bar"] = "foo"
|
||||
self.tdb.reopen()
|
||||
self.assertEquals("foo", self.tdb["bar"])
|
||||
|
||||
Reference in New Issue
Block a user