From 53debf7e2cb494d8ea89205812bf792e8e9354da Mon Sep 17 00:00:00 2001 From: ipknHama Date: Tue, 15 Apr 2014 00:31:51 +0900 Subject: parameter passing done for int --- test.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test.py') 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() -- cgit v1.2.3-54-g00ecf