summaryrefslogtreecommitdiff
path: root/docs/narr/myproject/tests/test_views.py
blob: 1fd9db8ab248342897ba6d062205d61e5c1c64c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from myproject.views.default import my_view
from myproject.views.notfound import notfound_view


def test_my_view(app_request):
    info = my_view(app_request)
    assert app_request.response.status_int == 200
    assert info['project'] == 'myproject'

def test_notfound_view(app_request):
    info = notfound_view(app_request)
    assert app_request.response.status_int == 404
    assert info == {}