Ticket #4833: 4833_test.diff
File 4833_test.diff, 515 bytes (added by , 17 years ago) |
---|
-
tests/modeltests/validation/models.py
142 142 >>> p.email 143 143 u'john@example.com' 144 144 145 >>> p = Person(**dict(valid_params, email='fred@localhost')) 146 >>> p.validate() 147 {} 148 >>> p.email 149 'fred@localhost' 150 145 151 >>> p = Person(**dict(valid_params, email=22)) 146 152 >>> p.validate() 147 153 {'email': [u'Enter a valid e-mail address.']}