[Zope-Checkins] CVS: Zope3/lib/python/Zope/Configuration/tests - testXML.py:1.1.2.3
Jim Fulton
jim@zope.com
Tue, 20 Nov 2001 15:16:25 -0500
Update of /cvs-repository/Zope3/lib/python/Zope/Configuration/tests
In directory cvs.zope.org:/tmp/cvs-serv889
Modified Files:
Tag: Zope-3x-branch
testXML.py
Log Message:
Fixed error message test to reflect recent error prettification.
Also made test script work wo args.
=== Zope3/lib/python/Zope/Configuration/tests/testXML.py 1.1.2.2 => 1.1.2.3 ===
))
except ZopeXMLConfigurationError, v:
- self.assertEqual(str(v),
- 'Namespace missmatch at line 5 column 16')
+ self.assertEqual(
+ str(v),
+ 'Namespace missmatch at line 5 column 16 of <string>')
else:
self.fail('Should have raised ZopeXMLConfigurationError')
@@ -146,4 +147,7 @@
pdb.run('debug()')
if __name__=='__main__':
- globals()[sys.argv[1]]()
+ if len(sys.argv) < 2:
+ run()
+ else:
+ globals()[sys.argv[1]]()