Skip to content
Snippets Groups Projects
Commit f1797a49 authored by florian's avatar florian
Browse files

FIX: Use correct error type

parent 82a2e751
Branches
Tags
2 merge requests!93Release 0.11.0,!92F merge missing list datatype
......@@ -34,6 +34,6 @@ def test_issue_100():
# Parse from (invalid) XML file
filename = os.path.join(os.path.dirname(__file__), "data", "list_in_value.xml")
xml_el = lxml.etree.parse(filename).getroot()
with raises(db.TypeError) as exc_info:
with raises(TypeError) as exc_info:
db.common.models._parse_single_xml_element(xml_el)
assert "Invalid datatype: List valued properties" in exc_info.value.msg
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment