Crow/test.py

5 lines
243 B
Python
Raw Normal View History

import urllib
2014-04-01 13:58:52 +00:00
assert "Hello World!" == urllib.urlopen('http://localhost:8080').read()
assert "About Flask example." == urllib.urlopen('http://localhost:8080/about').read()
2014-04-01 14:02:03 +00:00
assert 404 == urllib.urlopen('http://localhost:8080/list').getcode()