Skip to content
Myr

Small test added

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kamil Madac · committed by Kamil Madac · parent 8aff6f5 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:test_requests.py+1 added
924 unmodified lines
925 """ Ensures that IP addresses are correctly matches with ranges in no_proxy variable """926 from requests.utils import get_environ_proxies927 os.environ['no_proxy'] = "127.0.0.1,localhost.localdomain,192.168.0.0/24,172.16.1.1"928 assert get_environ_proxies('http://localhost.localdomain:5000/v1.0/') == {}929 assert get_environ_proxies('http://www.requests.com:5000/v1.0/') != {}930 assert get_environ_proxies('http://www.requests.com/') != {}931932if __name__ == '__main__':933 unittest.main()