Beispiel #1
0
 def test_match_allchild_3 (self) :
     self.assertTrue(not XML.xml_match_allchild(fromstring("<Team><Amber><Cooly><Carl></Carl></Cooly></Amber></Team>"), [fromstring("<Carl></Carl>")]))
Beispiel #2
0
 def test_match_allchild_1 (self) :
     self.assertTrue(XML.xml_match_allchild(fromstring("<cat><dog></dog></cat>"), [fromstring("<dog></dog>")]))
Beispiel #3
0
 def test_match_allchild_2 (self) :
     self.assertTrue(not XML.xml_match_allchild(fromstring("<Team></Team>"), [fromstring("<Cooly></Cooly>")]))