'Ticket #20311.'

def test_override_plural_forms(self):

    os.chdir(self.test_dir)
    management.call_command(u'makemessages', locale=[u'es'], extensions=[u'djtpl'], verbosity=0)
    self.assertTrue(os.path.exists(self.PO_FILE_ES))
    with io.open(self.PO_FILE_ES, u'r', encoding=u'utf-8') as fp:
        po_contents = fp.read()
        found = re.findall(u'^(?P<value>"Plural-Forms.+?\\\\n")\\s*$', po_contents, (re.MULTILINE | re.DOTALL))
        self.assertEqual(1, len(found))
