'Error in translation file should not crash template rendering
(%(person)s is translated as %(personne)s in fr.po)
Refs #16516.'

@override_settings(LOCALE_PATHS=(os.path.join(here, u'other', u'locale'),))
def test_bad_placeholder_1(self):

    with translation.override(u'fr'):
        t = Template(u'{%    load    i18n    %}{%    blocktrans    %}My    name    is    {{    person    }}.{%    endblocktrans    %}')
        rendered = t.render(Context({u'person': u'James'}))
        self.assertEqual(rendered, u'My    name    is    James.')
