#NEWLINE# def test_manipulate_permission_grants_unsupported_resource_type( self ) : #NEWLINE# #INDENT# role_db = self . roles [ 'custom_role_2' ] #NEWLINE# resource_db = RunnerTypeDB ( ) #NEWLINE# permission_types = [ PermissionType . RULE_ALL ] #NEWLINE# expected_msg = 'Permissions cannot be manipulated for a resource of type' #NEWLINE# self . assertRaisesRegexp ( ValueError , expected_msg , rbac_services . create_permission_grant_for_resource_db , role_db = role_db , resource_db = resource_db , permission_types = permission_types ) #NEWLINE# expected_msg = 'Permissions cannot be manipulated for a resource of type' #NEWLINE# self . assertRaisesRegexp ( ValueError , expected_msg , rbac_services . remove_permission_grant_for_resource_db , role_db = role_db , resource_db = resource_db , permission_types = permission_types )