1
0
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:
Jelmer Vernooij
2007-12-24 13:04:13 -06:00
committed by Stefan Metzmacher
parent 231ec0777b
commit fadab7c60b
4 changed files with 14 additions and 13 deletions

View File

@@ -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"])