MCPcopy
hub / github.com/aosabook/500lines / test_non_http

Method test_non_http

crawler/code/test.py:331–335  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

329 self.assertStat(content_type='image', num_urls=0)
330
331 def test_non_http(self):
332 body = '<a href="ftp://example.com">'.encode('utf-8')
333 self.add_page(body=body)
334 self.crawl()
335 self.assertStat(num_urls=0)
336
337
338if __name__ == '__main__':

Callers

nothing calls this directly

Calls 3

add_pageMethod · 0.95
crawlMethod · 0.95
assertStatMethod · 0.95

Tested by

no test coverage detected