equal
deleted
inserted
replaced
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: |