Ticket #21406: 21406-proof.diff

File 21406-proof.diff, 1.1 KB (added by Bouke Haarsma, 11 years ago)
  • tests/i18n/commands/templates/test.html

    diff --git a/tests/i18n/commands/templates/test.html b/tests/i18n/commands/templates/test.html
    index bd77728..3292047 100644
    a b continued here.{% endcomment %}  
    9494  line breaks, this time
    9595  should be trimmed.
    9696{% endblocktrans %}
     97{% trans "I'm on line 97" %}
  • tests/i18n/test_extraction.py

    diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py
    index 8753554..24cbb02 100644
    a b class BasicExtractorTests(ExtractorTests):  
    131131            self.assertNotMsgId('Text with a few line breaks.', po_contents)
    132132            # should be trimmed
    133133            self.assertMsgId("Again some text with a few line breaks, this time should be trimmed.", po_contents)
     134            # should adjust for eaten line numbers
     135            self.assertIn(
     136                "#: templates/test.html:97\nmsgid \"I'm on line 97\"",
     137                po_contents)
    134138
    135139    def test_force_en_us_locale(self):
    136140        """Value of locale-munging option used by the command is the right one"""
Back to Top