Improve a few functions in common and item

This commit is contained in:
Veronica K. B. Olsen
2020-10-24 17:54:02 +02:00
parent c0ad631039
commit 8d31428a9d
4 changed files with 39 additions and 28 deletions
+1 -1
View File
@@ -252,7 +252,7 @@ def testItemXMLPackUnpack(nwDummy):
xDummy = etree.SubElement(nwXML, "item", attrib={"handle": "0123456789abc"})
xParam = etree.SubElement(xDummy, "invalid")
xParam.text = "stuff"
assert theItem.unpackXML(xDummy) # Passes, but not saved
assert not theItem.unpackXML(xDummy)
# Pack Valid Item
xDummy = etree.SubElement(nwXML, "group")