test: fix webclient test

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%401090
This commit is contained in:
Daniel Grana 2009-04-27 06:52:38 +00:00
parent e8ecc00cfb
commit 8eaa9219f6
1 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@ class WebClientTestCase(unittest.TestCase):
def testFactoryInfo(self):
url = self.getURL('file')
scheme, host, port, path = client._parse(url)
factory = client.HTTPClientFactory(url)
factory = client.ScrapyHTTPClientFactory(url)
reactor.connectTCP(host, port, factory)
return factory.deferred.addCallback(self._cbFactoryInfo, factory)
@ -280,7 +280,7 @@ class WebClientTestCase(unittest.TestCase):
self.assertEquals(factory.status, '200')
self.assert_(factory.version.startswith('HTTP/'))
self.assertEquals(factory.message, 'OK')
self.assertEquals(factory.response_headers['content-length'][0], '10')
self.assertEquals(factory.response_headers['content-length'], '10')
def testRedirect(self):
return client.getPage(self.getURL("redirect")).addCallback(self._cbRedirect)