[Grok-dev] FanStatic resources and testing

Noe Nieto nnieto at noenieto.com
Sat Aug 6 21:03:17 EDT 2011


Dear cavemen,

I'm writng a doctest and I want to test whether a css stylesheet is
available.

The doctest suite has browser_layer set to an instance of
ZopeFanstaticBrowserLayer


I put the css in src/myapp/static/stylesheet.css

And in my doctest I'm doing this:

>>> browser.open('http://localhost/app/fanstatic/myapp/stylesheet.css')

But the test fails with a HTTPError: HTTP Error 404: Not Found.

But launching the grok app and visitng the same resource with firefox gives
no error.


Why?

-- 
---
Noe Nieto
NNieto Consulting Services
M: nnieto at noenieto.com
W: http://noenieto.com
T:  @tzicatl <https://twitter.com/#%21/tzicatl>
Li: Perfil en LinkedIn <http://www.linkedin.com/profile/view?id=84300665>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/grok-dev/attachments/20110806/bbe99efa/attachment.html 


More information about the Grok-dev mailing list