def test_render_png_param_validation(client, test_handwriting):
  with pytest.raises(handwritingio.ValidationError) as exc_info:
    client.render_png({
        'handwriting_id': test_handwriting['id'],
        'text': 'trying to make a CMYK PNG',
        'handwriting_color': '(0, 0.1, 0.1, 0.8)',
    })
  assert repr(exc_info.value) in 'handwriting_color'
dataset/ETHPy150Open handwritingio/python-client/test/test_client.py/test_render_png_param_validation/swapped operands of `in`