Skip to content

Commit c7e7466

Browse files
committed
Simple tests to ensure character encoding works
To make sure we don't break this again.
1 parent 9dfb42d commit c7e7466

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/test_matcher.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)