diff options
author | Per Andersson <avtobiff@gmail.com> | 2013-06-09 19:45:55 +0200 |
---|---|---|
committer | Per Andersson <avtobiff@gmail.com> | 2013-06-09 19:45:55 +0200 |
commit | 3d09dd7c6ac21ad1d70010a511947bb93305fb1e (patch) | |
tree | 5b055a5ba3579696b9a5dbf9ae5c666f5ea0cae0 /bleach/tests/test_basics.py | |
parent | 525314d573bb57e0dec989d2c85f951bccc1fe4d (diff) | |
parent | fac84c6d90e0875e6c1b10c5ef02d577ee008af4 (diff) | |
download | python-bleach-3d09dd7c6ac21ad1d70010a511947bb93305fb1e.tar python-bleach-3d09dd7c6ac21ad1d70010a511947bb93305fb1e.tar.gz |
Merge tag 'upstream/1.2.2'
Upstream version 1.2.2
Diffstat (limited to 'bleach/tests/test_basics.py')
-rw-r--r-- | bleach/tests/test_basics.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bleach/tests/test_basics.py b/bleach/tests/test_basics.py index 60be11d..9eca687 100644 --- a/bleach/tests/test_basics.py +++ b/bleach/tests/test_basics.py @@ -8,6 +8,10 @@ def test_empty(): eq_('', bleach.clean('')) +def test_nbsp(): + eq_(u'\xa0test string\xa0', bleach.clean(' test string ')) + + def test_comments_only(): comment = '<!-- this is a comment -->' open_comment = '<!-- this is an open comment' @@ -91,7 +95,6 @@ def test_serializer(): def test_no_href_links(): s = u'<a name="anchor">x</a>' eq_(s, bleach.linkify(s)) - eq_(s, bleach.linkify(s, nofollow=False)) def test_weird_strings(): |