Merge pull request #812 from kmike/fix-w3lib-trunk

fix tests to account for https://github.com/scrapy/w3lib/pull/23
This commit is contained in:
Pablo Hoffman 2014-07-22 15:54:42 -03:00
commit 4cf6a3b4b3
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ class DefaultsTest(ManagerTestCase):
req = Request('http://example.com')
body = '<p>You are being redirected</p>'
resp = Response(req.url, status=302, body=body, headers={
'Content-Length': len(body),
'Content-Length': str(len(body)),
'Content-Type': 'text/html',
'Content-Encoding': 'gzip',
'Location': 'http://example.com/login',
@ -85,7 +85,7 @@ class DefaultsTest(ManagerTestCase):
req = Request('http://example.com')
body = '<p>You are being redirected</p>'
resp = Response(req.url, status=200, body=body, headers={
'Content-Length': len(body),
'Content-Length': str(len(body)),
'Content-Type': 'text/html',
'Content-Encoding': 'gzip',
'Location': 'http://example.com/login',