devtools/testlib.py
branchstable
changeset 6800 3f3d576b87d9
parent 6774 bd50a9c1514e
child 6806 8291f5e0c9f6
equal deleted inserted replaced
6799:30faf6021278 6800:3f3d576b87d9
   478         class fake_menu(list):
   478         class fake_menu(list):
   479             @property
   479             @property
   480             def items(self):
   480             def items(self):
   481                 return self
   481                 return self
   482         class fake_box(object):
   482         class fake_box(object):
   483             def mk_action(self, label, url, **kwargs):
   483             def action_link(self, action, **kwargs):
   484                 return (label, url)
       
   485             def box_action(self, action, **kwargs):
       
   486                 return (action.title, action.url())
   484                 return (action.title, action.url())
   487         submenu = fake_menu()
   485         submenu = fake_menu()
   488         action.fill_menu(fake_box(), submenu)
   486         action.fill_menu(fake_box(), submenu)
   489         return submenu
   487         return submenu
   490 
   488