urltest 0.2.3
A wrapper around WebTest which provides a nice domain specific language for testing URLs in WSGI applications
#!/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)
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| urltest-0.2.3.tar.gz (md5) | Source | 2009-07-01 17:38:27.103681 | 5KB | 75 | |
| urltest-0.2.3-py2.5.egg (md5) | Python Egg | 2.5 | 2009-07-01 17:38:35.314361 | 14KB | 79 |
- Author: Gareth Rushgrove <gareth at morethanseven net>
- Home Page: http://github.com/garethr/urltest
- Keywords: wsgi testing urls
- License: MIT License
- Categories
- Package Index Owner: garethr
- DOAP record: urltest-0.2.3.xml
Log in to rate this package.
