added password protected site

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3577 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2007-10-02 01:07:12 +00:00
parent fe438941a9
commit b4289c6ebe

View file

@ -96,6 +96,13 @@ class TestRobotParser (unittest.TestCase):
self.check(self.rp.can_fetch('Mozilla',
'http://www.lycos.com/search'), True)
def test_password_robots (self):
# whole site is password-protected.
self.rp.set_url('http://mueblesmoraleda.com/robots.txt')
self.rp.read()
self.check(self.rp.can_fetch("*",
"http://mueblesmoraleda.com/"), False)
def test_suite ():
"""