Changeset 8171 for main/waeup.kofa/trunk/src/waeup/kofa/schema/tests
- Timestamp:
- 16 Apr 2012, 07:49:22 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/schema/tests/test_fields.py
r8166 r8171 4 4 from zope.interface.verify import verifyClass, verifyObject 5 5 from zope.schema.interfaces import IDate 6 from waeup.kofa.schema import FormattedDate 7 from waeup.kofa.schema.interfaces import IFormattedDate 6 from waeup.kofa.schema import FormattedDate, PhoneNumber 7 from waeup.kofa.schema.interfaces import IFormattedDate, IPhoneNumber 8 8 9 9 class FormattedDateTests(unittest.TestCase): … … 32 32 self.assertEqual(obj.date_format, '%d.%m.%Y') 33 33 return 34 35 class PhoneNumberTests(unittest.TestCase): 36 # Tests for PhoneNumber field 37 def test_iface(self): 38 # make sure we fullfill interface contracts 39 obj = PhoneNumber() 40 verifyClass(IPhoneNumber, PhoneNumber) 41 verifyObject(IPhoneNumber, obj) 42 return
Note: See TracChangeset for help on using the changeset viewer.