Changeset 4384 for waeup/branches


Ignore:
Timestamp:
28 Jun 2009, 00:05:59 (15 years ago)
Author:
uli
Message:

Complete tests for certificate factories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-rewrite/src/waeup/university/certificate.txt

    r4383 r4384  
    229229     >>> mycertificate
    230230     <waeup.university.certificate.Certificate object at 0x...>
     231
     232   The factory complies with the specifications from the
     233   :class:`IFactory` insterface:
     234
     235     >>> from zope.interface.verify import verifyClass
     236     >>> from zope.component.interfaces import IFactory
     237     >>> from waeup.university.certificate import CertificateFactory
     238     >>> verifyClass(IFactory, CertificateFactory)
     239     True
     240
     241   This means also, that we can get the interfaces of the created
     242   object from the factory:
     243
     244     >>> certificate_factory = CertificateFactory()
     245     >>> certificate_factory.getInterfaces()
     246     <implementedBy waeup.university.certificate.Certificate>
     247
    231248
    232249Event Subscribers
Note: See TracChangeset for help on using the changeset viewer.