import locale

# The test fixtures can break if the locale is non-US.
locale.setlocale(locale.LC_ALL, 'en_US')

import locale

# The test fixtures can break if the locale is non-US.
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')

Set the locale to en_US.UTF-8
test: Set the locale to en_US.UTF-8
