babel/tests/smoke.py

5 lines
128 B
Python
Raw Normal View History

from datetime import date
from babel.dates import format_date
assert format_date(date(2021,3,1), locale='en') == 'Mar 1, 2021'