diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-26 20:51:45 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-26 20:51:45 +0000 |
| commit | 384c48e456611ff995f7928b87098716a8e6fbe4 (patch) | |
| tree | 5b9acb92ecee17887633786ff9d01ed3a7e6f939 | |
| parent | 8f5234d801ebd2e8b526d4c75c94c89ea21eb440 (diff) | |
Cleaned up some tests I broke as a result of the escapejs changes in [8577].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8599 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | tests/regressiontests/defaultfilters/tests.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/regressiontests/defaultfilters/tests.py b/tests/regressiontests/defaultfilters/tests.py index 42e9bcaeb3..9e360fc061 100644 --- a/tests/regressiontests/defaultfilters/tests.py +++ b/tests/regressiontests/defaultfilters/tests.py @@ -50,16 +50,16 @@ u'\\\\ : backslashes, too' 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' |
