python3: use DjangoWebtestResponse.text in test_change_email

This commit is contained in:
Paul Marillonnet 2019-04-10 18:48:57 +02:00
parent a527949280
commit 67ab518726
1 changed files with 1 additions and 1 deletions

View File

@ -60,4 +60,4 @@ def test_change_email_is_unique_after_first_view(app, settings, simple_user, use
# email change is impossible as email is already taken
link = utils.get_link_from_mail(email)
response = app.get(link).follow()
assert 'is already used by another account' in response.content
assert 'is already used by another account' in response.text