[Checkins] SVN: zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/test_xmlconfig.py Full coverage for z.c.xmlconfig.ZopeXMLConfigurationError.

Tres Seaver cvs-admin at zope.org
Wed May 9 23:47:07 UTC 2012


Log message for revision 125803:
  Full coverage for z.c.xmlconfig.ZopeXMLConfigurationError.

Changed:
  U   zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/test_xmlconfig.py

-=-
Modified: zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/test_xmlconfig.py
===================================================================
--- zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/test_xmlconfig.py	2012-05-09 23:46:59 UTC (rev 125802)
+++ zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/test_xmlconfig.py	2012-05-09 23:47:03 UTC (rev 125803)
@@ -37,7 +37,11 @@
     def _makeOne(self, *args, **kw):
         return self._getTargetClass()(*args, **kw)
 
+    def test___str___uses_repr_of_info(self):
+        zxce = self._makeOne('info', Exception, 'value')
+        self.assertEqual(str(zxce), "'info'\n    Exception: value")
 
+
 class ZopeSAXParseExceptionTests(unittest.TestCase):
 
     def _getTargetClass(self):



More information about the checkins mailing list