From 4afa29b26a1c1e63e524421eb26f847cd3491cb1 Mon Sep 17 00:00:00 2001 From: elpolilla Date: Thu, 13 Nov 2008 10:46:43 +0000 Subject: [PATCH] Fixed adaptors test --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40374 --- scrapy/trunk/scrapy/tests/test_adaptors.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrapy/trunk/scrapy/tests/test_adaptors.py b/scrapy/trunk/scrapy/tests/test_adaptors.py index 63b4d3a1f..745026cd5 100644 --- a/scrapy/trunk/scrapy/tests/test_adaptors.py +++ b/scrapy/trunk/scrapy/tests/test_adaptors.py @@ -52,10 +52,10 @@ class AdaptorsTestCase(unittest.TestCase): ['lala.com', 'pepe.co.uk', 'das.biz', 'lelelel.net']) 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 />&'], keep_entities=[]), [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([u'hello©&welcome', u'<br />&']), [u'hello\xa9&welcome', u'<br />&']) def test_remove_tags(self): test_data = ['adsaas
', '
dsadasf
'] @@ -78,7 +78,7 @@ class AdaptorsTestCase(unittest.TestCase): [1, 2, 5, 6, 'hi']) def test_delist(self): - self.assertEqual(adaptors.Delist()(['hi', 'there', 'fellas.', 'this', 'is', 'my', 'test.']), + self.assertEqual(adaptors.delist(['hi', 'there', 'fellas.', 'this', 'is', 'my', 'test.']), 'hi there fellas. this is my test.')