From 6c9a2a3c52592e12d9cb0b312dbeee4311aa0c24 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 24 Dec 2007 13:04:13 -0600 Subject: r26586: Rename fetch to get for consistency with the Python dictionary interface. (This used to be commit fadab7c60bb6dc5746cb2ee16f9c86fa0e0cdf1a) --- source4/lib/tdb/python/tests/simple.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/lib/tdb/python') 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"]) -- cgit