Re: [Zope-dev] Unit tests for Zope products: how to test HTTP access to objectsin ZODB?

2002-11-08 Thread Dieter Maurer
Craeg K Strong writes:
  I am trying to add some unit tests for my XMLTransform product
  that test URL to Zope object traversal.  For example, I want
  to ensure that one XSLT (a zope object) can include another using
  
  xsl:include ../foo.xsl/
  
  Zope should transform the above into a request for a zope object
  with an ID of foo.xsl in the parent folder of the original XSLT.
  
  My question: how have you, dear reader, tested Zope's mapping of
  URLs (relative and/or absolute) to objects in ZODB?
I use the request module found in

  http://www.dieter.handshake.de/pyprojects/zope

to create a request object with its getAuthRequest.
Then I use its traverse to traverse to the object
(as ZPublisher would do) and call it then.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] Unit tests for Zope products: how to test HTTP access to objectsin ZODB?

2002-11-06 Thread Craeg K Strong
Hello:

I am trying to add some unit tests for my XMLTransform product
that test URL to Zope object traversal.  For example, I want
to ensure that one XSLT (a zope object) can include another using

xsl:include ../foo.xsl/

Zope should transform the above into a request for a zope object
with an ID of foo.xsl in the parent folder of the original XSLT.

My question: how have you, dear reader, tested Zope's mapping of
URLs (relative and/or absolute) to objects in ZODB?

I am hoping that it can be done, possibly at the cost of bringing in
additional Zope machinery (which means additional unit test startup
time)...?

Thanks in advance,

--Craeg


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope )