Author: mtredinnick Date: 2008-08-26 15:51:45 -0500 (Tue, 26 Aug 2008) New Revision: 8599
Modified: django/trunk/tests/regressiontests/defaultfilters/tests.py Log: Cleaned up some tests I broke as a result of the escapejs changes in [8577]. Modified: django/trunk/tests/regressiontests/defaultfilters/tests.py =================================================================== --- django/trunk/tests/regressiontests/defaultfilters/tests.py 2008-08-26 20:44:20 UTC (rev 8598) +++ django/trunk/tests/regressiontests/defaultfilters/tests.py 2008-08-26 20:51:45 UTC (rev 8599) @@ -50,16 +50,16 @@ u'Hello world' >>> escapejs(u'"double quotes" and \'single quotes\'') -u'\\"double quotes\\" and \\\'single quotes\\\'' +u'\\x22double quotes\\x22 and \\x27single quotes\\x27' >>> escapejs(ur'\ : backslashes, too') -u'\\\\ : backslashes, too' +u'\\x5C : backslashes, too' >>> escapejs(u'and lots of whitespace: \r\n\t\v\f\b') -u'and lots of whitespace: \\r\\n\\t\\v\\f\\b' +u'and lots of whitespace: \\x0D\\x0A\\x09\\x0B\\x0C\\x08' >>> escapejs(ur'<script>and this</script>') -u'<script>and this<\\/script>' +u'\\x3Cscript\\x3Eand this\\x3C/script\\x3E' >>> fix_ampersands(u'Jack & Jill & Jeroboam') u'Jack & Jill & Jeroboam' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
