def test_minimal_error(json_codec):
    error = json_codec.load(b'{"_type":"error","_meta":{"title":"Failure"},"messages":["failed"]}')
    assert error == Error(title="Failure", content={'messages': ['failed']})


# Parse errors should be raised for invalid encodings.
Ensure we can load a minimal error message encoding.
dataset/ETHPy150Open core-api/python-client/tests/test_codecs.py/test_minimal_error