MCPcopy Index your code
hub / github.com/python/cpython / test_basic

Method test_basic

Lib/test/test_robotparser.py:488–493  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

486 )
487
488 def test_basic(self):
489 self.assertFalse(self.parser.disallow_all)
490 self.assertFalse(self.parser.allow_all)
491 self.assertGreater(self.parser.mtime(), 0)
492 self.assertFalse(self.parser.crawl_delay('*'))
493 self.assertFalse(self.parser.request_rate('*'))
494
495 def test_can_fetch(self):
496 self.assertTrue(self.parser.can_fetch('*', self.url('elsewhere')))

Callers

nothing calls this directly

Calls 5

assertFalseMethod · 0.80
assertGreaterMethod · 0.80
crawl_delayMethod · 0.80
request_rateMethod · 0.80
mtimeMethod · 0.45

Tested by

no test coverage detected