Test for binary body content from data URI downloader.

This commit is contained in:
Artur Gaspar 2017-02-08 12:32:00 -02:00
parent 7e9f2c31d7
commit 3397d27574
1 changed files with 1 additions and 0 deletions

View File

@ -861,6 +861,7 @@ class DataURITestCase(unittest.TestCase):
def test_text_charset(self):
def _test(response):
self.assertEquals(response.text, u'\u038e\u03a3\u038e')
self.assertEquals(response.body, b'\xbe\xd3\xbe')
self.assertEquals(response.encoding, "iso-8859-7")
request = Request("data:text/plain;charset=iso-8859-7,%be%d3%be")