[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope3-checkins
Subject:    [Zope3-checkins] CVS: Packages/ZConfig/tests - testConfig.py:1.14
From:       "Fred L. Drake\, Jr." <fred () zope ! com>
Date:       2002-11-26 23:08:29
[Download RAW message or body]

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic