From dc1a168d533229169171bdbd28f85b069208ad8c Mon Sep 17 00:00:00 2001 From: elpolilla Date: Sun, 4 Jan 2009 14:46:13 +0000 Subject: [PATCH] Fixed unquote adaptor's test --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40641 --- scrapy/trunk/scrapy/tests/test_adaptors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapy/trunk/scrapy/tests/test_adaptors.py b/scrapy/trunk/scrapy/tests/test_adaptors.py index 5acc6a81d..0d84d8479 100644 --- a/scrapy/trunk/scrapy/tests/test_adaptors.py +++ b/scrapy/trunk/scrapy/tests/test_adaptors.py @@ -119,11 +119,11 @@ class AdaptorsTestCase(unittest.TestCase): def test_unquote_all(self): - self.assertEqual(adaptors.Unquote(keep=[])([u'hello©&welcome', u'<br />&']), [u'hello\xa9&welcome', u'
&']) + self.assertEqual(adaptors.Unquote()([u'hello©&welcome', u'<br />&']), [u'hello\xa9&welcome', u'
&']) def test_unquote(self): - self.assertEqual(adaptors.Unquote()([u'hello©&welcome', u'<br />&']), [u'hello\xa9&welcome', u'<br />&']) + self.assertEqual(adaptors.Unquote(keep=['amp', 'lt'])([u'hello©&welcome', u'<br />&']), [u'hello\xa9&welcome', u'<br />&']) def test_remove_tags(self):