Changeset 6261


Ignore:
Timestamp:
1 Jun 2011, 13:39:28 (13 years ago)
Author:
uli
Message:

Update tests. Still just experimental. Also to test svnmailer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/utils/tests/test_converters.py

    r6257 r6261  
    6868        class IContact(Interface):
    6969            name = schema.TextLine(
    70                 title = u'name',
     70                title = u'Name',
    7171                default = u'Manfred'
    7272                )
    7373            age = schema.Int(
    74                 title = u'age',
     74                title = u'Age',
    7575                default = 23,
    7676                required = True,
    7777                )
    7878            city = schema.TextLine(
    79                 title = u'city',
     79                title = u'City',
    8080                required = True,
    8181                )
     
    9494        conv = ISchemaTypeConverter(IContact)
    9595        input_data = dict(name='Foo')
     96        input_data = dict(name='Foo', age='sweet sixteen')
    9697        err, inv_err, data = conv.applyRowData(input_data, context)
    97         print context.name, context.age
    98         print err, inv_err, data
     98        #print context.name, context.age
     99        #print err, inv_err, data
     100        #import pdb; pdb.set_trace()
    99101        #val = conv._convertValueFromString('Foo', context=context)
    100102        #print field, conv
Note: See TracChangeset for help on using the changeset viewer.