Changeset 5669

Show
Ignore:
Timestamp:
11/15/08 07:06:55 (2 months ago)
Author:
deets
Message:

fixed typo & i18n-based failure

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tg/tests/test_validation.py

    r4820 r5669  
    104104        assert content['a'] == 1 
    105105                 
    106     def test_validaton_errors(self): 
     106    def test_validation_errors(self): 
    107107        "Ensure that dict validation produces a full set of errors" 
    108108        form_values = {'a':'1', 'b':"guido~google.com"} 
    109109        resp = self.app.post('/two_validators', form_values) 
    110         print resp 
    111         assert 'An email address must contain a single @' in resp 
     110        ev = validators.Email() 
     111        m = ev.message("noAt", None) 
     112        assert m in resp 
    112113     
    113114    def test_form_validation(self):