@@ -141,9 +141,6 @@ def test_url_matching(self):
141141 'http://www.test.com/abc' )
142142 self .assertMatchBoth ('http://www.test.com:5000/abc' ,
143143 'http://www.test.com:5000/abc' )
144- self .assertMatchBoth ('http://www.test.com/a string%url' ,
145- 'http://www.test.com/a string%url' )
146-
147144 self .assertNoMatchBoth ('https://www.test.com' ,
148145 'http://www.test.com' )
149146 self .assertNoMatchBoth ('http://www.test.com/abc' ,
@@ -161,6 +158,14 @@ def test_url_matching(self):
161158 self .assertNoMatchBoth ('http://test.com/abc/' ,
162159 'http://www.test.com:5000/abc' )
163160
161+ def test_quotation (self ):
162+ self .assertMatchBoth ('http://www.test.com/a string%url' ,
163+ 'http://www.test.com/a string%url' )
164+ self .assertMatchBoth ('http://www.test.com/ABC 123' ,
165+ 'http://www.test.com/ABC%20123' )
166+ self .
assertMatchBoth (
'http://www.test.com/[email protected] ' ,
167+ 'http://www.test.com/[email protected] ' )
168+
164169 def test_subset_match (self ):
165170 self .assertMatch ('/path' , 'http://www.test.com/path' )
166171 self .assertMatch ('/path' , 'http://www.test.com/path' )
0 commit comments