python3: replace DjangoWebtestResponse content with text (#40012)
This commit is contained in:
parent
012eba57a0
commit
df3dff1532
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue