summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/python/tests
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-24 13:04:13 -0600
committerStefan Metzmacher <metze@samba.org>2007-12-26 11:57:04 -0600
commit6c9a2a3c52592e12d9cb0b312dbeee4311aa0c24 (patch)
tree6246085f09a047d8df872d2d53aa4e037480afa0 /source4/lib/tdb/python/tests
parent59efa6e5d074f9f0fbc0b5fd2b5bcdc9d78b95e3 (diff)
downloadsamba-6c9a2a3c52592e12d9cb0b312dbeee4311aa0c24.tar.gz
samba-6c9a2a3c52592e12d9cb0b312dbeee4311aa0c24.tar.bz2
samba-6c9a2a3c52592e12d9cb0b312dbeee4311aa0c24.zip
r26586: Rename fetch to get for consistency with the Python dictionary interface.
(This used to be commit fadab7c60bb6dc5746cb2ee16f9c86fa0e0cdf1a)
Diffstat (limited to 'source4/lib/tdb/python/tests')
-rw-r--r--source4/lib/tdb/python/tests/simple.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/lib/tdb/python/tests/simple.py b/source4/lib/tdb/python/tests/simple.py
index 0e0ef0251e..698a77f942 100644
--- a/source4/lib/tdb/python/tests/simple.py
+++ b/source4/lib/tdb/python/tests/simple.py
@@ -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"])