Ignore:
Timestamp:
16 Apr 2012, 07:49:22 (13 years ago)
Author:
uli
Message:

Add PhoneNumber? schema field and register PhoneWidget? as default edit widget for it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/schema/tests/test_fields.py

    r8166 r8171  
    44from zope.interface.verify import verifyClass, verifyObject
    55from zope.schema.interfaces import IDate
    6 from waeup.kofa.schema import FormattedDate
    7 from waeup.kofa.schema.interfaces import IFormattedDate
     6from waeup.kofa.schema import FormattedDate, PhoneNumber
     7from waeup.kofa.schema.interfaces import IFormattedDate, IPhoneNumber
    88
    99class FormattedDateTests(unittest.TestCase):
     
    3232        self.assertEqual(obj.date_format, '%d.%m.%Y')
    3333        return
     34
     35class 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.