python3: replace DjangoWebtestResponse content with text (#40012)

This commit is contained in:
Nicolas Roche 2020-02-19 17:36:32 +01:00
parent 012eba57a0
commit df3dff1532
1 changed files with 1 additions and 1 deletions

View File

@ -119,5 +119,5 @@ def test_debug_home(logged_app):
page = logged_app.get('/debug/')
page.form['debug_ips'] = 'not_an_IP'
page = page.form.submit()
assert 'Enter a valid IPv4 or IPv6 address' in page.content
assert 'Enter a valid IPv4 or IPv6 address' in page.text
assert page.form['debug_ips']._value == 'not_an_IP' # get 'n o t _ a n _ I P'