def test_init_role_baseview(self):
    role_name = 'MyRole3'
    role_perms = [('can_some_action', 'SomeBaseView')]
    self.security_manager.init_role(role_name, perms=role_perms)
    role = self.appbuilder.sm.find_role(role_name)
    self.assertIsNotNone(role)
    self.assertEqual(len(role_perms), len(role.permissions))
def test_init_role_baseview(self):
    role_name = 'MyRole3'
    role_perms = [('can_some_action', 'SomeBaseView')]
    self.security_manager.init_role(role_name, perms=role_perms)
    role = self.appbuilder.sm.find_role(role_name)
    self.assertIsNotNone(role)
    self.assertEqual(len(role_perms), len(role.permissions))