'Test that safe_translation insulates from bad translations.'

@mock_gettext
def test_safe_translation_bad_trans(self):

    from django.utils.translation import ugettext as _
    @safe_translation
    def bad_trans(locale):
        return _('Hello    {name}').format(name='Mike')
    eq_(bad_trans('en-US'), 'Hello    Mike')
    eq_(bad_trans('fr'), 'Hello    Mike')
    eq_(bad_trans('es'), 'Hola    Mike')
