FleaTest WSGI applications using lxml | |
Download |
Flea Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Oliver Cope
- Publisher web site:
- http://pesto.redgecko.org/
Flea Tags
Flea Description
Test WSGI applications using lxml Flea helps you test WSGI applications without starting up an HTTP server. If you already know lxml, you'll know what makes flea so powerful. Flea is fully integrated with lxml's xpath api, letting you inspect, modify and navigate HTML documents returned from your WSGI application. Here's an example session: >>> agent = TestAgent(my_wsgi_app)>>> agent.get('/')>>> print agent.body< html > < body > < a href="/sign-in" >sign in< /a > < /body >< /html >>>> agent = agent"].click()>>> print agent.request.request_urihttp://localhost/sign-in>>> agent"].value = 'root'>>> agent"].value = 'password'>>> agent = agent"].submit()Full package documentation: http://packages.python.org/flea/ Requirements: · Python
Flea Related Software