[Zodb-checkins] CVS: Packages/ZConfig/tests - test_schema.py:1.1.2.20

Fred L. Drake, Jr. fred@zope.com
Fri, 13 Dec 2002 16:32:47 -0500


Update of /cvs-repository/Packages/ZConfig/tests
In directory cvs.zope.org:/tmp/cvs-serv12885

Modified Files:
      Tag: zconfig-schema-devel-branch
	test_schema.py 
Log Message:
No more worming around the implementation details; stick to the API.


=== Packages/ZConfig/tests/test_schema.py 1.1.2.19 => 1.1.2.20 ===
--- Packages/ZConfig/tests/test_schema.py:1.1.2.19	Fri Dec 13 16:09:41 2002
+++ Packages/ZConfig/tests/test_schema.py	Fri Dec 13 16:32:47 2002
@@ -191,8 +191,10 @@
                                      "c 42\n"
                                      "c 43\n",
                                      num_handlers=2)
-        self.assertEqual(self.handlers._handlers,
-                         [('abc', ['foo', 'bar']), ('def', conf)])
+        L = []
+        self.handlers({'abc': L.append,
+                       'DEF': L.append})
+        self.assertEqual(L, [['foo', 'bar'], conf])
         self.assertEqual(conf.a, ['foo', 'bar'])
         self.assertEqual(conf.b, [1, 2])
         self.assertEqual(conf.c, [41, 42, 43])