Ignore:
Timestamp:
12 Apr 2010, 14:28:51 (15 years ago)
Author:
uli
Message:

Update all unit tests that use the ZCA to run inside the new unit test layer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/hostel/hostelcontainer.txt

    r4920 r5140  
    44Containers for hostels.
    55
    6 :Test-Layer: unit
     6.. :doctest:
     7.. :layer: waeup.sirp.testing.WAeUPSIRPUnitTestLayer
    78
    89Getting a hostel container
     
    2223Another way to get a hostel container -- without importing the class
    2324-- is via factories. We registered a factory for hostel containers
    24 under the name ``waeup.HostelContainer``::
    25 
    26     >>> import grok
    27     >>> grok.testing.grok('waeup')
    28 
    29 Now we can ask for an object by calling the appropriate factory:
     25under the name ``waeup.HostelContainer``. So we can ask for an object
     26by calling the appropriate factory:
    3027
    3128    >>> from zope.component import createObject
Note: See TracChangeset for help on using the changeset viewer.