def METHOD_NAME():
    request.accept_languages = LanguageAccept([('en-PI', 1), ('fr_FR', 0.7)])
    assert str(get_locale()) == 'fr_FR'
    request.accept_languages = LanguageAccept([('fr-FR', 1)])
    assert str(get_locale()) == 'fr_FR'