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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
urltest-0.2.3-py2.5.egg
(14.8 kB
view details)
File details
Details for the file urltest-0.2.3.tar.gz.
File metadata
- Download URL: urltest-0.2.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64d1c5b0517f68b7ab4da72349c75dc629090b65c55e49039a7f141b1c8e0ab1
|
|
| MD5 |
f974209b71ee68dc4549ffb77bac1123
|
|
| BLAKE2b-256 |
89b8d8021b4d653d0a7f8bf56601ddfb4b35b9ebd6b43a8d50c8b3819f7c0702
|
File details
Details for the file urltest-0.2.3-py2.5.egg.
File metadata
- Download URL: urltest-0.2.3-py2.5.egg
- Upload date:
- Size: 14.8 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a4fd36e3f2eff63179bd019dd440fc9e557d4775bea65a5b740ebdd58b299bf
|
|
| MD5 |
58c8f6a97d06827eddcd3648cc6c3136
|
|
| BLAKE2b-256 |
8ba771887e5e31732ae4f71575091f561bde4f1be75853ad20202556e66751be
|