def is_delegated(delegated_names, name):
    """
    Tests a name to see if it is in a delegated zone.

    :param list delegated_names: List of non-apex dns.name.Names in zone with NS RRSets.
    :param obj name: The dns.name.Name to test.
    :return: True if name is delegated, False otherwise.
    """
    for deleg_name in delegated_names:
        if name.is_subdomain(deleg_name):
            return True
    return False
