
Imports

    >>> from __future__ import (absolute_import, division, print_function)
    >>> from owslib.util import clean_ows_url

Tests

    >>> clean_ows_url('http//example.org/wms')
    'http//example.org/wms'
    >>> clean_ows_url('http//example.org/wms?service=WMS')
    'http//example.org/wms'
    >>> clean_ows_url('http//example.org/wms?SERVICE=WMS')
    'http//example.org/wms'
    >>> clean_ows_url('http//example.org/wms?SeRvIcE=WMS')
    'http//example.org/wms'
    >>> clean_ows_url('http//example.org/wms?SeRvIcE=WMS&version=1.3.0&request=GetCapabilities')
    'http//example.org/wms'
    >>> clean_ows_url('http//example.org/wms?foo=bar&SeRvIcE=WMS&version=1.3.0&request=GetCapabilities')
    'http//example.org/wms?foo=bar'
    >>> clean_ows_url('http://example.org/wms?map=/path/to/foo.map&SERVICE=WMS&version=1.3.0&request=GetCapabilities')
    'http://example.org/wms?map=%2Fpath%2Fto%2Ffoo.map'
    >>> clean_ows_url('http://example.org/wms?map=/path/to/foo.map&foo=bar&&SERVICE=WMS&version=1.3.0&request=GetCapabilities')
    'http://example.org/wms?map=%2Fpath%2Fto%2Ffoo.map&foo=bar'
