diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-07-28 16:30:46 +0000 |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-07-28 16:30:46 +0000 |
commit | 42b0c2f74068d74694187d229f65fcce0ae19643 (patch) | |
tree | c2a02aa73ab05d8516352e5e8f4c81810fd2d28b /Lib/test/test_robotparser.py | |
parent | b8f96c16036f34d8e913cca95c5ad07a592b161d (diff) | |
download | cpython-git-42b0c2f74068d74694187d229f65fcce0ae19643.tar.gz |
Merged revisions 83209 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r83209 | senthil.kumaran | 2010-07-28 21:57:56 +0530 (Wed, 28 Jul 2010) | 3 lines
Fix Issue6325 - robotparse to honor urls with query strings.
........
Diffstat (limited to 'Lib/test/test_robotparser.py')
-rw-r--r-- | Lib/test/test_robotparser.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_robotparser.py b/Lib/test/test_robotparser.py index 4c3b5363fd..9d3040547e 100644 --- a/Lib/test/test_robotparser.py +++ b/Lib/test/test_robotparser.py @@ -205,6 +205,17 @@ bad = ['/folder1/anotherfile.html'] RobotTest(13, doc, good, bad, agent="googlebot") +# 14. For issue #6325 (query string support) +doc = """ +User-agent: * +Disallow: /some/path?name=value +""" + +good = ['/some/path'] +bad = ['/some/path?name=value'] + +RobotTest(14, doc, good, bad) + class NetworkTestCase(unittest.TestCase): |