Exemple #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())
Exemple #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())