[Zope-dev] Zope 2.5.0 Sessions & Testing
Chris Withers
chrisw@nipltd.com
Tue, 08 Jan 2002 10:16:16 +0000
Hi,
Trying to test a URL in a unittest.py test using code as follows:
apply(Site.restrictedTraverse('/folder/cmfsite/skinmethod'),params)
Now, skinmethod uses the new Zope 2.5.0 sessioning:
session=context.REQUEST.SESSION
session.set('key','value')
but the BeforeTraversal hook doesn't seem to kick in when restrictedTraverse is
used :-(
We always get an AttributeError on SESSION.
How should we fix this and go about testing this method properly?
cheers,
Chris