14 lines
409 B
Python
14 lines
409 B
Python
from html_cleanup.views.default import my_view
|
|
from html_cleanup.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'] == 'html_cleanup'
|
|
|
|
def test_notfound_view(app_request):
|
|
info = notfound_view(app_request)
|
|
assert app_request.response.status_int == 404
|
|
assert info == {}
|