Files
notifications-admin/tests/app/test_assets.py
T

11 lines
421 B
Python
Raw Normal View History

2017-05-04 11:28:45 +01:00
def test_crown_logo(client):
# This image is used by the email templates, so we should be really careful to make
# sure that its always there.
response = client.get('/static/images/email-template/crown-32px.gif')
2016-04-07 09:15:18 +01:00
assert response.status_code == 200
2017-05-04 11:28:45 +01:00
def test_static_404s_return(client):
response = client.get('/static/images/some-image-that-doesnt-exist.png')
assert response.status_code == 404