def METHOD_NAME():
    data = json.loads(EXPECTED_MALWARE)
    data["malware_types"] = 1  # Oops, not a list
    data = json.dumps(data)
    with pytest.raises(InvalidValueError) as excinfo:
        stix2.parse(data)
    assert "Invalid value for Malware 'malware_types'" in str(excinfo.value)