sample_python_urllib3.py 308 B

123456789
  1. # Check that we can import urllib3 even if we don't use all of it:
  2. import urllib3
  3. # Just check that we can create a PoolManager:
  4. http = urllib3.PoolManager()
  5. # Check if we can normalize URLs:
  6. assert urllib3.util.url.parse_url("HTTPS://Example.Com/?Key=Value").url \
  7. == "https://example.com/?Key=Value"