'Ensures a correct workaround for the gettext bug when handling a literal
found inside a {% trans %} tag and also in another file inside a
{% blocktrans %} with a plural (#17375).'

def test_trans_and_plural_blocktrans_collision(self):

    management.call_command('makemessages', locale=[LOCALE], extensions=['html', 'djtpl'], verbosity=0)
    self.assertTrue(os.path.exists(self.PO_FILE))
    with open(self.PO_FILE, 'r') as fp:
        po_contents = fp.read()
        self.assertNotIn('#-#-#-#-#        django.pot    (PACKAGE    VERSION)        #-#-#-#-#\\n', po_contents)
        self.assertMsgId('First    `trans`,    then    `blocktrans`    with    a    plural', po_contents)
        self.assertMsgIdPlural('Plural    for    a    `trans`    and    `blocktrans`    collision    case', po_contents)
