[Zope-Checkins] CVS: ZODB3/ZODB/tests - testConfig.py:1.1.4.3
Jeremy Hylton
jeremy@zope.com
Thu, 2 Jan 2003 18:31:12 -0500
Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv4570/ZODB/tests
Modified Files:
Tag: zconfig-schema-devel-branch
testConfig.py
Log Message:
Add simply config for ZEO
=== ZODB3/ZODB/tests/testConfig.py 1.1.4.2 => 1.1.4.3 ===
--- ZODB3/ZODB/tests/testConfig.py:1.1.4.2 Thu Jan 2 18:13:37 2003
+++ ZODB3/ZODB/tests/testConfig.py Thu Jan 2 18:30:37 2003
@@ -19,6 +19,7 @@
from ZODB.POSException import ReadOnlyError
import ZODB.config
import ZODB.tests
+from ZEO.ClientStorage import ClientDisconnected
class ZODBConfigTest(unittest.TestCase):
@@ -59,6 +60,15 @@
</filestorage>
""" % path
self.assertRaises(ReadOnlyError, self._test, cfg)
+
+ def test_zeo_config(self):
+ cfg = \
+ """<zeoclient>
+ server /no/path/var/test/foo
+ wait false
+ </zeoclient>
+ """
+ self.assertRaises(ClientDisconnected, self._test, cfg)
def test_suite():
return unittest.makeSuite(ZODBConfigTest)