def test_helper_4 (self) : XMLroot = ET.fromstring("<Team>\n<ACRush></ACRush>\n<Jelly></Jelly>\n<Cooly></Cooly>\n</Team>\n") proot = ET.fromstring("<Team><Cooly></Cooly></Team>") tmp = helper(XMLroot, proot) self.assert_(tmp)
def test_helper_2 (self) : XMLroot = ET.fromstring("<TEMP>\n<Team>\n<Cooly>\n<Derp></Derp>\n</Cooly>\n</Team>\n</TEMP>\n") proot = ET.fromstring("<TEMP><Team></Team></TEMP>") tmp = helper(XMLroot, proot) self.assert_(tmp)
def test_helper_3 (self) : XMLroot = ET.fromstring("<B>\n<C>\n<D></D>\n</C>\n<E>\n<F></F>\n</E>\n</B>\n") proot = ET.fromstring("<B><C><D></D></C><E><F></F></E></B>") tmp = helper(XMLroot, proot) self.assert_(tmp)
def test_helper_1 (self) : XMLroot = ET.fromstring("<TEMP>\n</TEMP>\n") proot = ET.fromstring("<TEMP></TEMP>") tmp = helper(XMLroot, proot) self.assert_(tmp)