mirror of https://github.com/scrapy/scrapy.git
spelling: user
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
2cb1e6668a
commit
8a526d161c
|
|
@ -20,7 +20,7 @@ class UserAgentMiddlewareTest(TestCase):
|
|||
self.assertEqual(req.headers['User-Agent'], b'default_useragent')
|
||||
|
||||
def test_remove_agent(self):
|
||||
# settings UESR_AGENT to None should remove the user agent
|
||||
# settings USER_AGENT to None should remove the user agent
|
||||
spider, mw = self.get_spider_and_mw('default_useragent')
|
||||
spider.user_agent = None
|
||||
mw.spider_opened(spider)
|
||||
|
|
|
|||
Loading…
Reference in New Issue