test okina: compare binary content to binary data (#38781)
This commit is contained in:
parent
b75fa5785d
commit
48a71687cc
|
@ -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' },
|
||||
|
|
Loading…
Reference in New Issue