Пример #1
0
 def test_multiple_xpath_matches(self):
     with self.assertRaises(ValueError):
         self.registry('ir.ui.view').replace_arch_section(
             self.cr, self.uid, self.view_id, '/div/div/h3',
             h.H6("Lol nope"))
Пример #2
0
 def test_multiple_xpath_matches(self):
     with self.assertRaises(ValueError):
         self.view_id.replace_arch_section('/div/div/h3', h.H6("Lol nope"))