Ticket #4833: 4833_test.diff

File 4833_test.diff, 515 bytes (added by Erin Kelly, 17 years ago)

Test case for 4833.diff

  • tests/modeltests/validation/models.py

     
    142142>>> p.email
    143143u'john@example.com'
    144144
     145>>> p = Person(**dict(valid_params, email='fred@localhost'))
     146>>> p.validate()
     147{}
     148>>> p.email
     149'fred@localhost'
     150
    145151>>> p = Person(**dict(valid_params, email=22))
    146152>>> p.validate()
    147153{'email': [u'Enter a valid e-mail address.']}
Back to Top