From 01942bd164841fd0a28b412f3f241128e2fe5592 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 13 Feb 2013 20:02:57 +0100 Subject: [PATCH] Fix util tests. --- tests/test_util.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_util.py b/tests/test_util.py index 5238fe850..b1887ab20 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -14,13 +14,13 @@ class URLTest(TestCase): def test_unescape(self): # Test HTML replacement. self.assertEqual(unescape('foo&bar'), 'foo&bar') - self.assertEqual(unescape('foo bar'), 'foo%C2%A0bar') - self.assertEqual(unescape('"foo"'), '%22foo%22') + self.assertEqual(unescape('foo bar'), u'foo\xa0bar') + self.assertEqual(unescape('"foo"'), '"foo"') def test_normalisation(self): # Test URL normalisation. self.assertEqual(normaliseURL('http://example.com//bar/baz&baz'), - 'http://example.com/bar/baz&baz') + u'http://example.com/bar/baz%26baz') class RegexTest(TestCase):