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/..")
def test_xml_Express1 (self) : query = "<T></T>" queryroot = et.fromstring(query) result = xml_Express(queryroot) self.assertTrue(result == ".//T")