[Zodb-checkins] CVS: Packages/ZConfig/tests - testConfig.py:1.14
Fred L. Drake, Jr.
fred@zope.com
Tue, 26 Nov 2002 18:08:29 -0500
Update of /cvs-repository/Packages/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv21208/tests
Modified Files:
testConfig.py
Log Message:
Remove Configuration.__getitem__(); this is an evil interface, and is not
actually getting used anywhere. (We do not want these objects to look too
much like dictionaries, since they do not always behave that way.)
=== Packages/ZConfig/tests/testConfig.py 1.13 => 1.14 ===
--- Packages/ZConfig/tests/testConfig.py:1.13 Mon Nov 25 17:52:17 2002
+++ Packages/ZConfig/tests/testConfig.py Tue Nov 26 18:08:28 2002
@@ -86,15 +86,6 @@
conf = self.load("simple.conf")
self.check_simple_gets(conf)
- def test_simple_getitem(self):
- conf = self.load("simple.conf")
- self.assertEqual(conf['empty'], '')
- self.assertEqual(conf['int-var'], '12')
- self.assertEqual(conf['list-3'], 'abc def ghi')
- def check(conf=conf):
- conf['really-not-there']
- self.assertRaises(KeyError, check)
-
def test_type_errors(self):
conf = self.load("simple.conf")
getbool = conf.getbool