MCPcopy
hub / github.com/scrapy/scrapy / test_get_host

Method test_get_host

tests/test_http_cookies.py:17–19  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15 assert self.wrapped.full_url == self.request.url
16
17 def test_get_host(self):
18 assert self.wrapped.get_host() == urlparse_cached(self.request).netloc
19 assert self.wrapped.host == urlparse_cached(self.request).netloc
20
21 def test_get_type(self):
22 assert self.wrapped.get_type() == urlparse_cached(self.request).scheme

Callers

nothing calls this directly

Calls 2

urlparse_cachedFunction · 0.90
get_hostMethod · 0.80

Tested by

no test coverage detected