[FIX] ir_ui_view: it seems the iter() method is no longer there, removed the test..

bzr revid: vmt@openerp.com-20130701112930-k8rhlvgbaj1y1zl5
This commit is contained in:
Vo Minh Thu 2013-07-01 13:29:30 +02:00
parent aba5593f01
commit 3b4ecbf033
1 changed files with 0 additions and 13 deletions

View File

@ -186,19 +186,6 @@ class TestViewInheritance(common.TransactionCase):
self.cr, self.uid, self.ids['A11']),
[(self.arch_for('A111', parent=True), self.ids['A111'])])
def test_iter(self):
descendents = list(self.View.iter(self.cr, self.uid, self.ids['A1'], self.model))
self.assertEqual(descendents, [
(self.ids[name], self.arch_for(name, parent=True))
for name in ['A1', 'A11', 'A111', 'A12']
])
descendents = list(self.View.iter(
self.cr, self.uid, self.ids['A2'], self.model, exclude_base=True))
self.assertEqual(descendents, [
(self.ids[name], self.arch_for(name, parent=True))
for name in ['A21', 'A22', 'A221']
])
def test_root_ancestor(self):
A_id = self.ids['A']
root_id = self.View.root_ancestor(self.cr, self.uid, view_id=A_id)