tests: check download contents as bytes (#36515)

This commit is contained in:
Frédéric Péters 2019-11-15 22:42:16 +01:00
parent 9b2e2c8d13
commit d62e945441
1 changed files with 1 additions and 1 deletions

View File

@ -3842,7 +3842,7 @@ def test_formdata_form_file_download(pub):
download = resp.test_app.get(resp.location + 'files/form-xxx-yyy/test.txt')
assert download.content_type == 'text/plain'
assert download.body == 'foobar'
assert download.body == b'foobar'
# go back to the status page, this will exercise the substitution variables
# codepath.