def METHOD_NAME(module_perms, function_role):
    """Create a filter and delete the role it points at.
    :id: e2adb6a4-e408-4912-a32d-2bf2c43187d9
    :expectedresults: The filter cannot be fetched.
    :CaseImportance: Critical
    """
    filter_ = make_filter({'role-id': function_role['id'], 'permissions': module_perms})
    # A filter depends on a role. Deleting a role implicitly deletes the
    # filter pointing at it.
    Role.delete({'id': function_role['id']})
    with pytest.raises(CLIReturnCodeError):
        Role.info({'id': function_role['id']})
    with pytest.raises(CLIReturnCodeError):
        Filter.info({'id': filter_['id']})