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