<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
from .. import Division


def test_get():
    wake = Division.get('ocd-division/country:us/state:nc/county:wake')
    assert wake.name == 'Wake County'
    assert wake.name in str(wake)


def test_children():
    us = Division.get('ocd-division/country:us')
    assert len(list(us.children('state', duplicates=False))) == 50<commit_msg>use non-US countries for tests, because US download takes the longest<commit_after>#!/u/bin/env python
# -*- coding: utf-8 -*-
from .. import Division


def test_get():
    div = Division.get('ocd-division/country:de/land:bw/wahlkreis:bad_kissingen')
    assert div.name == 'Bad Kissingen'
    assert div.name in str(div)


def test_children():
    us = Division.get('ocd-division/country:ua')
    assert len(list(us.children('region', duplicates=False))) == 25
{'fraction_non_alphanumeric': 0.16083916083916083, 'fraction_numerical': 0.006993006993006993, 'mean_word_length': 4.052941176470588, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7651305', 'n_tokens_mistral': 294, 'n_tokens_neox': 281, 'n_words': 63}