Beispiel #1
0
 def test_constructor_list(self):
     mrx = MRXpath([[''], ['a'], ['b'], ['c', '/d/e[@id="1"]']])
     self.assertEqual('/a/b/c[\'/d/e[@id="1"]\']', mrx.to_abbrev_xpath())
Beispiel #2
0
 def test_constructor_strxpath(self):
     mrx = MRXpath("/a/b/c[@id='/d/e[@id=\"1\"]']")
     self.assertEqual('/a/b/c[\'/d/e[@id="1"]\']', mrx.to_abbrev_xpath())