Lowercase scheme in regexp test

This works in requests 1.1 and 2.0 but it fails in the 1.2 series. It's
not something we should be too concerned about enforcing at the
requests-mock layer so just fix up the test.

Closes-Bug: #1361497
Change-Id: I8f30262ab3177d9e3d3644c083aed6031eeba78f
This commit is contained in:
Jamie Lennox
2014-08-26 16:03:21 +10:00
parent 8b7387134e
commit b0c746a04e

View File

@@ -301,7 +301,7 @@ class SessionAdapterTests(base.TestCase):
def test_with_regexp(self):
self.adapter.register_uri('GET', re.compile('tester.com'), text='resp')
for u in ('mocK://www.tester.com/a', 'mock://abc.tester.com'):
for u in ('mock://www.tester.com/a', 'mock://abc.tester.com'):
resp = self.session.get(u)
self.assertEqual('resp', resp.text)