mozilla/affiliates — pull request #143 by Osmose (2012-09-25 21:21:00+00:00)
Title: Activate shortened locales and fix tests.

activate_locale now activates the shortened version of
a locale so that get_language returns the exact same value
as request.locale.

In addition, this fixes the patch_settings decorator,
which previously was breaking tests and not running them.