Add import-export round-trip check.

* add fix for the file export code--remove tag tail and text,
  not just the children.
This commit is contained in:
Victor Shnayder
2012-07-26 16:17:17 -04:00
parent 128d11e20e
commit da29d88d04
2 changed files with 60 additions and 27 deletions

View File

@@ -257,6 +257,11 @@ class XmlDescriptor(XModuleDescriptor):
# ...and remove all of its children here
for child in xml_object:
xml_object.remove(child)
# also need to remove the text of this object.
xml_object.text = ''
# and the tail for good measure...
xml_object.tail = ''
xml_object.set('filename', self.name)