test/unittest_selectors.py
changeset 6047 ee6deb534f57
parent 6046 3fd4a34c4a09
child 6340 470d8e828fda
equal deleted inserted replaced
6041:31776723c0c5 6047:ee6deb534f57
   149 
   149 
   150     def test_etype_inheritance_no_yams_inheritance(self):
   150     def test_etype_inheritance_no_yams_inheritance(self):
   151         cls = self.vreg['etypes'].etype_class('Personne')
   151         cls = self.vreg['etypes'].etype_class('Personne')
   152         self.failIf(is_instance('Societe').score_class(cls, self.request()))
   152         self.failIf(is_instance('Societe').score_class(cls, self.request()))
   153 
   153 
       
   154     def test_yams_inheritance(self):
       
   155         cls = self.vreg['etypes'].etype_class('Transition')
       
   156         self.assertEquals(is_instance('BaseTransition').score_class(cls, self.request()),
       
   157                           3)
       
   158 
   154 
   159 
   155 class MatchUserGroupsTC(CubicWebTC):
   160 class MatchUserGroupsTC(CubicWebTC):
   156     def test_owners_group(self):
   161     def test_owners_group(self):
   157         """tests usage of 'owners' group with match_user_group"""
   162         """tests usage of 'owners' group with match_user_group"""
   158         class SomeAction(action.Action):
   163         class SomeAction(action.Action):