summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-07-28 16:27:56 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-07-28 16:27:56 (GMT)
commit3f8ab965f722b3bda679c9271fb8907e2bbcdc64 (patch)
tree851810d60ce71d36a5d67bc1e404da7bc36e9ddd /Lib/test
parent96a60ae90c291d94c058c80351fa38b6d73eda92 (diff)
downloadcpython-3f8ab965f722b3bda679c9271fb8907e2bbcdc64.zip
cpython-3f8ab965f722b3bda679c9271fb8907e2bbcdc64.tar.gz
cpython-3f8ab965f722b3bda679c9271fb8907e2bbcdc64.tar.bz2
Fix Issue6325 - robotparse to honor urls with query strings.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_robotparser.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/test/test_robotparser.py b/Lib/test/test_robotparser.py
index 4c3b536..9d30405 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):