diff Lib/test/test_robotparser.py @ 63270:9bcbc343778f

Fix Issue6325 - robotparse to honor urls with query strings.
author Senthil Kumaran <orsenthil@gmail.com>
date Wed, 28 Jul 2010 16:27:56 +0000
parents 255a401c19b0
children f435b7b98690
line wrap: on
line diff
--- a/Lib/test/test_robotparser.py	Wed Jul 28 13:13:46 2010 +0000
+++ b/Lib/test/test_robotparser.py	Wed Jul 28 16:27:56 2010 +0000
@@ -205,6 +205,17 @@
 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):