A wrapper around WebTest which provides a nice domain specific language for testing URLs in WSGI applications
Project description
#!/usr/bin/env python
from example_app import application
from urltest import verify_urls
if __name__ == "__main__":
urls = (
{'url':"/", 'code':200},
{'url':"/bob", 'code':200},
{'url':"/jim", 'code':404},
{'url':"/jim", 'method': "POST", 'code':405},
)
verify_urls(urls, application)
from example_app import application
from urltest import verify_urls
if __name__ == "__main__":
urls = (
{'url':"/", 'code':200},
{'url':"/bob", 'code':200},
{'url':"/jim", 'code':404},
{'url':"/jim", 'method': "POST", 'code':405},
)
verify_urls(urls, application)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
urltest-0.2.3.tar.gz
(5.9 kB
view hashes)
Built Distribution
urltest-0.2.3-py2.5.egg
(14.8 kB
view hashes)