test okina: compare binary content to binary data (#38781)

This commit is contained in:
Emmanuel Cazenave 2020-01-22 15:40:36 +01:00
parent b75fa5785d
commit 48a71687cc
1 changed files with 1 additions and 1 deletions

View File

@ -1571,7 +1571,7 @@ def test_okina_suscribe(app, okina):
resp = app.get(endpoint)
assert requests_get.call_count == 1
assert resp.headers['content-type'] == 'image/png'
assert resp.content == 'PNGfoo'
assert resp.content == b'PNGfoo'
requests_get.return_value = utils.FakedResponse(content=QRCODE_400,
headers={'Content-Type': 'application/json' },