Changeset 12327 for main/waeup.ikoba/trunk/src/waeup/ikoba/utils/tests
- Timestamp:
- 26 Dec 2014, 20:18:17 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/utils/tests/test_converters.py
r12309 r12327 38 38 SimpleIkobaVocabulary, IFieldConverter, 39 39 DELETION_MARKER, IGNORE_MARKER) 40 from waeup.ikoba.products.productoptions import ProductOption EntryField40 from waeup.ikoba.products.productoptions import ProductOptionField 41 41 from waeup.ikoba.utils.converters import ( 42 42 IObjectConverter, IFieldConverter, DefaultFieldConverter, 43 ListFieldConverter, PhoneNumberFieldConverter, ProductOption EntryConverter,43 ListFieldConverter, PhoneNumberFieldConverter, ProductOptionConverter, 44 44 DefaultObjectConverter) 45 45 from waeup.ikoba.utils.helpers import attrs_to_fields … … 94 94 options = schema.List( 95 95 title = u'Options', 96 value_type = ProductOption EntryField(),96 value_type = ProductOptionField(), 97 97 required = True, 98 98 default = [], … … 137 137 obj2 = ListFieldConverter(None) 138 138 obj3 = PhoneNumberFieldConverter(None) 139 obj4 = ProductOption EntryConverter(None)139 obj4 = ProductOptionConverter(None) 140 140 verify.verifyObject(IFieldConverter, obj1) 141 141 verify.verifyObject(IFieldConverter, obj2) … … 145 145 verify.verifyClass(IFieldConverter, ListFieldConverter) 146 146 verify.verifyClass(IFieldConverter, PhoneNumberFieldConverter) 147 verify.verifyClass(IFieldConverter, ProductOption EntryConverter)147 verify.verifyClass(IFieldConverter, ProductOptionConverter) 148 148 return 149 149
Note: See TracChangeset for help on using the changeset viewer.