web/test/unittest_views_basecontrollers.py
changeset 9674 96549de9dd70
parent 9478 2d7521881d3d
child 9675 8aabfefc8a81
equal deleted inserted replaced
9673:f5e77035f332 9674:96549de9dd70
    51             }
    51             }
    52 
    52 
    53 class EditControllerTC(CubicWebTC):
    53 class EditControllerTC(CubicWebTC):
    54     def setUp(self):
    54     def setUp(self):
    55         CubicWebTC.setUp(self)
    55         CubicWebTC.setUp(self)
    56         self.assertTrue('users' in self.schema.eschema('CWGroup').get_groups('read'))
    56         self.assertIn('users', self.schema.eschema('CWGroup').get_groups('read'))
    57 
    57 
    58     def tearDown(self):
    58     def tearDown(self):
    59         CubicWebTC.tearDown(self)
    59         CubicWebTC.tearDown(self)
    60         self.assertTrue('users' in self.schema.eschema('CWGroup').get_groups('read'))
    60         self.assertIn('users', self.schema.eschema('CWGroup').get_groups('read'))
    61 
    61 
    62     def test_noparam_edit(self):
    62     def test_noparam_edit(self):
    63         """check behaviour of this controller without any form parameter
    63         """check behaviour of this controller without any form parameter
    64         """
    64         """
    65         with self.assertRaises(ValidationError) as cm:
    65         with self.assertRaises(ValidationError) as cm: