def test_phonemes_count_none():
    drop_caches()
    assert SubstitutionFeaturesMixin._phonemes_count() == _get_pronunciations().keys()
    for word in SubstitutionFeaturesMixin._phonemes_count():
        assert word.islower()
def test_get_pronunciations():
    pronunciations = _get_pronunciations()
    # We have the right kind of data.
    assert pronunciations["hello"] == [["HH", "AH0", "L", "OW1"], ["HH", "EH0", "L", "OW1"]]
    # And what's loaded is memoized.
    assert pronunciations is _get_pronunciations()