mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-21 19:04:44 -05:00
10 lines
318 B
Python
10 lines
318 B
Python
from bs4 import BeautifulSoup
|
|
from flask import url_for
|
|
|
|
|
|
def test_bad_url_returns_page_not_found(client):
|
|
response = client.get('/bad_url')
|
|
assert response.status_code == 404
|
|
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
|
|
assert page.h1.string.strip() == 'Page could not be found'
|