Improve a few functions in common and item

This commit is contained in:
Veronica K. B. Olsen committed 2020-10-24 17:54:02 +02:00
1 parent c0ad631039
commit 8d31428a9d
4 files changed
+39 -28

No files matched your search

+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")