A wrapper around WebTest which provides a nice domain specific language for testing URLs in WSGI applications
Project description
+++++++
UrlTest
+++++++
A wrapper around WebTest which provides a nice domain specific language for
testing URLs in WSGI applications. The following example demonstrates usage:
Example
=======
#!/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)
Files
=====
UrlTest
+++++++
A wrapper around WebTest which provides a nice domain specific language for
testing URLs in WSGI applications. The following example demonstrates usage:
Example
=======
#!/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)
Files
=====
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
urltest-0.2-py2.5.egg
(14.9 kB
view hashes)