diff options
author | ipknHama <ipknhama@gmail.com> | 2014-04-15 00:31:51 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2014-04-15 00:31:51 +0900 |
commit | 53debf7e2cb494d8ea89205812bf792e8e9354da (patch) | |
tree | c0195ecc0673b794087c99908a2314dfc8a0ff31 /test.py | |
parent | 7ec586556e348725bff3919f4787a75d71c520fa (diff) | |
download | crow-53debf7e2cb494d8ea89205812bf792e8e9354da.tar.gz crow-53debf7e2cb494d8ea89205812bf792e8e9354da.zip |
parameter passing done for int
Diffstat (limited to 'test.py')
-rw-r--r-- | test.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2,3 +2,7 @@ import urllib assert "Hello World!" == urllib.urlopen('http://localhost:8080').read() assert "About Flask example." == urllib.urlopen('http://localhost:8080/about').read() assert 404 == urllib.urlopen('http://localhost:8080/list').getcode() +assert "3 bottles of beer!" == urllib.urlopen('http://localhost:8080/hello/3').read() +assert "100 bottles of beer!" == urllib.urlopen('http://localhost:8080/hello/100').read() +assert "" == urllib.urlopen('http://localhost:8080/hello/500').read() +assert 400 == urllib.urlopen('http://localhost:8080/hello/500').getcode() |