For some reason we’re generating XHTML <br>s now

¯\_(ツ)_/¯
This commit is contained in:
Chris Hill-Scott
2017-07-26 10:47:14 +01:00
parent 68a1426e58
commit 5fdbbda022

View File

@@ -206,7 +206,7 @@ def test_escapes_letter_contact_block(
page = BeautifulSoup(response.data.decode('utf-8'), 'html.parser')
div = str(page.find_all('tr')[5].find_all('td')[1].div)
assert 'foo<br>bar' in div
assert 'foo<br/>bar' in div
assert '<script>' not in div