##// END OF EJS Templates
fixed some tests after recent changes on default group permissions
marcink -
r3053:d7e10699 beta
parent child Browse files
Show More
@@ -355,7 +355,7 class TestPermissions(unittest.TestCase)
355 self.assertEqual(u1_auth.permissions['global'],
355 self.assertEqual(u1_auth.permissions['global'],
356 set(['hg.create.repository', 'hg.fork.repository',
356 set(['hg.create.repository', 'hg.fork.repository',
357 'hg.register.manual_activate',
357 'hg.register.manual_activate',
358 'repository.read']))
358 'repository.read', 'group.read']))
359
359
360 def test_inherited_permissions_from_default_on_user_disabled(self):
360 def test_inherited_permissions_from_default_on_user_disabled(self):
361 user_model = UserModel()
361 user_model = UserModel()
@@ -373,7 +373,7 class TestPermissions(unittest.TestCase)
373 self.assertEqual(u1_auth.permissions['global'],
373 self.assertEqual(u1_auth.permissions['global'],
374 set(['hg.create.none', 'hg.fork.none',
374 set(['hg.create.none', 'hg.fork.none',
375 'hg.register.manual_activate',
375 'hg.register.manual_activate',
376 'repository.read']))
376 'repository.read', 'group.read']))
377
377
378 def test_non_inherited_permissions_from_default_on_user_enabled(self):
378 def test_non_inherited_permissions_from_default_on_user_enabled(self):
379 user_model = UserModel()
379 user_model = UserModel()
@@ -399,7 +399,7 class TestPermissions(unittest.TestCase)
399 self.assertEqual(u1_auth.permissions['global'],
399 self.assertEqual(u1_auth.permissions['global'],
400 set(['hg.create.none', 'hg.fork.none',
400 set(['hg.create.none', 'hg.fork.none',
401 'hg.register.manual_activate',
401 'hg.register.manual_activate',
402 'repository.read']))
402 'repository.read', 'group.read']))
403
403
404 def test_non_inherited_permissions_from_default_on_user_disabled(self):
404 def test_non_inherited_permissions_from_default_on_user_disabled(self):
405 user_model = UserModel()
405 user_model = UserModel()
@@ -425,7 +425,7 class TestPermissions(unittest.TestCase)
425 self.assertEqual(u1_auth.permissions['global'],
425 self.assertEqual(u1_auth.permissions['global'],
426 set(['hg.create.repository', 'hg.fork.repository',
426 set(['hg.create.repository', 'hg.fork.repository',
427 'hg.register.manual_activate',
427 'hg.register.manual_activate',
428 'repository.read']))
428 'repository.read', 'group.read']))
429
429
430 def test_owner_permissions_doesnot_get_overwritten_by_group(self):
430 def test_owner_permissions_doesnot_get_overwritten_by_group(self):
431 #create repo as USER,
431 #create repo as USER,
General Comments 0
You need to be logged in to leave comments. Login now