isso/specs/test_urls.py

14 lines
266 B
Python
Raw Normal View History

2012-10-16 14:18:04 +00:00
from werkzeug.test import Client
from werkzeug.wrappers import BaseResponse
import isso
client = Client(isso.Isso(123), BaseResponse)
def test_200ok():
assert client.get('/').status_code == 200
assert client.get('/comment/asdf/123').status_code == 200