mirror of https://github.com/scrapy/scrapy.git
Fixed unquote adaptor's test
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40641
This commit is contained in:
parent
604c86b779
commit
dc1a168d53
|
|
@ -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'<br />&'])
|
||||
self.assertEqual(adaptors.Unquote()([u'hello©&welcome', u'<br />&']), [u'hello\xa9&welcome', u'<br />&'])
|
||||
|
||||
|
||||
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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue