Loading tests/regressiontests/localflavor/ar/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ class ARLocalFlavorTests(SimpleTestCase): def test_ARCUITField(self): error_format = ['Enter a valid CUIT in XX-XXXXXXXX-X or XXXXXXXXXXXX format.'] error_invalid = ['Invalid CUIT.'] error_legal_type = [u'Invalid legal type. Type must be 27, 20, 23 or 30.'] error_legal_type = ['Invalid legal type. Type must be 27, 20, 23 or 30.'] valid = { '20-10123456-9': '20-10123456-9', '20-10123456-9': '20-10123456-9', Loading tests/regressiontests/utils/html.py +5 −5 Original line number Diff line number Diff line Loading @@ -36,13 +36,13 @@ class TestUtilsHtml(unittest.TestCase): def test_format_html(self): self.assertEqual( html.format_html(u"{0} {1} {third} {fourth}", u"< Dangerous >", html.mark_safe(u"<b>safe</b>"), html.format_html("{0} {1} {third} {fourth}", "< Dangerous >", html.mark_safe("<b>safe</b>"), third="< dangerous again", fourth=html.mark_safe(u"<i>safe again</i>") fourth=html.mark_safe("<i>safe again</i>") ), u"< Dangerous > <b>safe</b> < dangerous again <i>safe again</i>" "< Dangerous > <b>safe</b> < dangerous again <i>safe again</i>" ) def test_linebreaks(self): Loading Loading
tests/regressiontests/localflavor/ar/tests.py +1 −1 Original line number Diff line number Diff line Loading @@ -81,7 +81,7 @@ class ARLocalFlavorTests(SimpleTestCase): def test_ARCUITField(self): error_format = ['Enter a valid CUIT in XX-XXXXXXXX-X or XXXXXXXXXXXX format.'] error_invalid = ['Invalid CUIT.'] error_legal_type = [u'Invalid legal type. Type must be 27, 20, 23 or 30.'] error_legal_type = ['Invalid legal type. Type must be 27, 20, 23 or 30.'] valid = { '20-10123456-9': '20-10123456-9', '20-10123456-9': '20-10123456-9', Loading
tests/regressiontests/utils/html.py +5 −5 Original line number Diff line number Diff line Loading @@ -36,13 +36,13 @@ class TestUtilsHtml(unittest.TestCase): def test_format_html(self): self.assertEqual( html.format_html(u"{0} {1} {third} {fourth}", u"< Dangerous >", html.mark_safe(u"<b>safe</b>"), html.format_html("{0} {1} {third} {fourth}", "< Dangerous >", html.mark_safe("<b>safe</b>"), third="< dangerous again", fourth=html.mark_safe(u"<i>safe again</i>") fourth=html.mark_safe("<i>safe again</i>") ), u"< Dangerous > <b>safe</b> < dangerous again <i>safe again</i>" "< Dangerous > <b>safe</b> < dangerous again <i>safe again</i>" ) def test_linebreaks(self): Loading