dirhunt.tests package¶
Submodules¶
dirhunt.tests.base module¶
dirhunt.tests.test_crawler module¶
- class dirhunt.tests.test_crawler.TestCrawler(methodName='runTest')[source]¶
Bases:
CrawlerTestBase
,TestCase
dirhunt.tests.test_crawler_url module¶
dirhunt.tests.test_processors module¶
- class dirhunt.tests.test_processors.TestError(methodName='runTest')[source]¶
Bases:
CrawlerTestBase
,TestCase
- class dirhunt.tests.test_processors.TestProcessBlankPageRequest(methodName='runTest')[source]¶
Bases:
CrawlerTestBase
,TestCase
- class dirhunt.tests.test_processors.TestProcessCssStyleSheet(methodName='runTest')[source]¶
Bases:
CrawlerTestBase
,TestCase
- css = 'body { background-image: url("img/foo.png") }'¶
- class dirhunt.tests.test_processors.TestProcessHtmlRequest(methodName='runTest')[source]¶
Bases:
CrawlerTestBase
,TestCase
- class dirhunt.tests.test_processors.TestProcessIndexOfRequest(methodName='runTest')[source]¶
Bases:
CrawlerTestBase
,TestCase
- html = '\n <html><head><title>Index Of</title></head><body>\n <a href="..">Top</a>\n <a href="dir/">dir</a>\n <a href="foo.php">foo.php</a>\n <a href="error_log">error_log</a>\n <a href="/spam/eggs">Eggs</a></body></html>\n '¶
- class dirhunt.tests.test_processors.TestProcessJavaScript(methodName='runTest')[source]¶
Bases:
CrawlerTestBase
,TestCase
- js = '\n "http://example.com" "/wrong/file/test<>b" "api/create.php?user=test"\n "index.html"\n '¶
- class dirhunt.tests.test_processors.TestProcessNotFound(methodName='runTest')[source]¶
Bases:
CrawlerTestBase
,TestCase
- html = ''¶
dirhunt.tests.test_utils module¶
- class dirhunt.tests.test_utils.TestCatchKeyboardInterrupt(methodName='runTest')[source]¶
Bases:
TestCase
- class dirhunt.tests.test_utils.TestCatchKeyboardInterruptChoices(methodName='runTest')[source]¶
Bases:
TestCase
- class dirhunt.tests.test_utils.TestConfirmChoicesClose(methodName='runTest')[source]¶
Bases:
TestCase