[Checkins] SVN: z3c.form/trunk/src/z3c/form/validator.txt make
tests pass for both python2.4 and python2.5
Paul Carduner
paulcarduner at gmail.com
Tue Apr 8 15:39:04 EDT 2008
Log message for revision 85163:
make tests pass for both python2.4 and python2.5
Changed:
U z3c.form/trunk/src/z3c/form/validator.txt
-=-
Modified: z3c.form/trunk/src/z3c/form/validator.txt
===================================================================
--- z3c.form/trunk/src/z3c/form/validator.txt 2008-04-08 19:38:31 UTC (rev 85162)
+++ z3c.form/trunk/src/z3c/form/validator.txt 2008-04-08 19:39:04 UTC (rev 85163)
@@ -341,6 +341,9 @@
>>> invariants = validator.InvariantsValidator(
... stephan, None, None, IPerson, None)
- >>> invariants.validate({'email': 'foo at bar.com'})
- (<zope.interface.exceptions.Invalid instance at ...>,)
+ >>> errors = invariants.validate({'email': 'foo at bar.com'})
+ >>> errors[0].__class__.__name__
+ 'Invalid'
+ >>> errors[0].args[0]
+ 'The login not part of email.'
More information about the Checkins
mailing list