Пример #1
0
def test_simple_locale():
    e = DidYouMean('en')
    eq_(True, e.check('fial'))
Пример #2
0
def test_wrong_capitalization():
    """Make sure that passing incorrectly capitalized locales still works"""
    e = DidYouMean('en-us')
    eq_(False, e.check('worng'))