forked from pool/python-httpretty
843689f808
* http.request may replace // with /, handle that in the testcase. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httpretty?expand=0&rev=49
11 lines
603 B
Diff
11 lines
603 B
Diff
Index: httpretty-1.1.4/tests/functional/test_requests.py
|
|
===================================================================
|
|
--- httpretty-1.1.4.orig/tests/functional/test_requests.py
|
|
+++ httpretty-1.1.4/tests/functional/test_requests.py
|
|
@@ -946,4 +946,4 @@ def test_httpretty_should_handle_paths_s
|
|
response = requests.get('http://example.com//foo')
|
|
expect(response.text).to.equal('Find the best foo')
|
|
expect(HTTPretty.last_request.method).to.equal('GET')
|
|
- expect(HTTPretty.last_request.path).to.equal('//foo')
|
|
+ expect(HTTPretty.last_request.path).to.be.within(['//foo', '/foo'])
|