diff options
author | Lance Stout <lancestout@gmail.com> | 2010-08-12 01:26:01 -0400 |
---|---|---|
committer | Lance Stout <lancestout@gmail.com> | 2010-08-12 01:26:01 -0400 |
commit | 5da7bd1866b6ea2c58055a3aac7d0ed273ed40c6 (patch) | |
tree | 82487a24f8e80f0a2650fe55cb4c877b86095024 /tests/xmlcompare.py | |
parent | 22134c302b68f37ded406ea335aca4c9bdab3090 (diff) | |
download | slixmpp-5da7bd1866b6ea2c58055a3aac7d0ed273ed40c6.tar.gz slixmpp-5da7bd1866b6ea2c58055a3aac7d0ed273ed40c6.tar.bz2 slixmpp-5da7bd1866b6ea2c58055a3aac7d0ed273ed40c6.tar.xz slixmpp-5da7bd1866b6ea2c58055a3aac7d0ed273ed40c6.zip |
Removed unused xmlcompare.py.
Diffstat (limited to 'tests/xmlcompare.py')
-rw-r--r-- | tests/xmlcompare.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/xmlcompare.py b/tests/xmlcompare.py deleted file mode 100644 index d97af971..00000000 --- a/tests/xmlcompare.py +++ /dev/null @@ -1,28 +0,0 @@ -from xml.etree import cElementTree as ET - -def comparemany(xmls): - xml1 = xmls[0] - if type(xml1) == type(''): - xml1 = ET.fromstring(xml1) - for xml in xmls[1:]: - xml2 = xml - if type(xml2) == type(''): - xml2 = ET.fromstring(xml2) - if not compare(xml1, xml2): return False - return True - -def compare(xml1, xml2): - if xml1.tag != xml2.tag: - return False - if xml1.attrib != xml2.attrib: - return False - for child in xml1: - child2s = xml2.findall("%s" % child.tag) - if child2s is None: - return False - found = False - for child2 in child2s: - found = compare(child, child2) - if found: break - if not found: return False - return True |