~gary-wilson/django/switchable-user-class

« back to all changes in this revision

Viewing changes to tests/regressiontests/defaultfilters/tests.py

  • Committer: Gary Wilson
  • Date: 2008-04-03 16:37:08 UTC
  • mfrom: (3788.1.807)
  • Revision ID: gary.wilson@gmail.com-20080403163708-oyej1vggdi0hu4ew
MergedĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
u'13.1031'
38
38
>>> floatformat(u'foo', u'bar')
39
39
u''
 
40
>>> floatformat(None)
 
41
u''
40
42
 
41
43
>>> addslashes(u'"double quotes" and \'single quotes\'')
42
44
u'\\"double quotes\\" and \\\'single quotes\\\''
47
49
>>> capfirst(u'hello world')
48
50
u'Hello world'
49
51
 
 
52
>>> escapejs(u'"double quotes" and \'single quotes\'')
 
53
u'\\"double quotes\\" and \\\'single quotes\\\''
 
54
 
 
55
>>> escapejs(ur'\ : backslashes, too')
 
56
u'\\\\ : backslashes, too'
 
57
 
 
58
>>> escapejs(u'and lots of whitespace: \r\n\t\v\f\b')
 
59
u'and lots of whitespace: \\r\\n\\t\\v\\f\\b'
 
60
 
 
61
>>> escapejs(ur'<script>and this</script>')
 
62
u'<script>and this<\\/script>'
 
63
 
50
64
>>> fix_ampersands(u'Jack & Jill & Jeroboam')
51
65
u'Jack &amp; Jill &amp; Jeroboam'
52
66