def find_test_awc_locations():
    test_locations = set()
    for location in SQLLocation.active_objects.filter(location_type__code='state', domain=DOMAIN):
        if (location.metadata.get('is_test_location') == 'test'):
            test_locations.update(location.get_descendants(include_self=True).filter(location_type__code='awc').values_list('location_id', flat=True))
    return test_locations
def find_test_awc_locations():
    test_locations = set()
    for location in SQLLocation.active_objects.filter(location_type__code='state', domain=DOMAIN):
        if (location.metadata.get('is_test_location') == 'test'):
            test_locations.update(location.get_descendants(include_self=True).filter(location_type__code='awc').values_list('location_id', flat=True))
    return test_locations