예제 #1
0
 def test_xml_Express3 (self) :
     query = "<T> <C> </C> <D> </D> </T>"
     queryroot = et.fromstring(query)
     result = xml_Express(queryroot)
     self.assertTrue(result == ".//T/C/../D/..")
예제 #2
0
 def test_xml_Express1 (self) :
     query = "<T></T>"
     queryroot = et.fromstring(query)
     result = xml_Express(queryroot)
     self.assertTrue(result == ".//T")