[Zope-Checkins] CVS: Zope/lib/python/ZServer/tests - test_config.py:1.1.2.7
Fred L. Drake, Jr.
fred@zope.com
Tue, 18 Mar 2003 14:39:38 -0500
Update of /cvs-repository/Zope/lib/python/ZServer/tests
In directory cvs.zope.org:/tmp/cvs-serv10627
Modified Files:
Tag: new-install-branch
test_config.py
Log Message:
Be more picky: before we dump the config object, check that we got
exactly the right number of server factories.
=== Zope/lib/python/ZServer/tests/test_config.py 1.1.2.6 => 1.1.2.7 ===
--- Zope/lib/python/ZServer/tests/test_config.py:1.1.2.6 Tue Mar 18 13:36:47 2003
+++ Zope/lib/python/ZServer/tests/test_config.py Tue Mar 18 14:39:37 2003
@@ -44,6 +44,7 @@
def load_factory(self, text):
conf, xxx = ZConfig.loadConfigFile(self.get_schema(),
StringIO.StringIO(text))
+ self.assertEqual(len(conf.servers), 1)
return conf.servers[0]
def load_unix_domain_factory(self, text):