aboutsummaryrefslogtreecommitdiffstats
path: root/test.py
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2014-04-15 00:31:51 +0900
committeripknHama <ipknhama@gmail.com>2014-04-15 00:31:51 +0900
commit53debf7e2cb494d8ea89205812bf792e8e9354da (patch)
treec0195ecc0673b794087c99908a2314dfc8a0ff31 /test.py
parent7ec586556e348725bff3919f4787a75d71c520fa (diff)
downloadcrow-53debf7e2cb494d8ea89205812bf792e8e9354da.tar.gz
crow-53debf7e2cb494d8ea89205812bf792e8e9354da.zip
parameter passing done for int
Diffstat (limited to 'test.py')
-rw-r--r--test.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test.py b/test.py
index f6cc490..c7bc552 100644
--- a/test.py
+++ b/test.py
@@ -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()