def test_real(self): assert_equal( wms_capabilities_url( 'http://environment.data.gov.uk/ds/wms?SERVICE=WMS&INTERFACE=ENVIRONMENT--6f51a299-351f-4e30-a5a3-2511da9688f7&request=GetCapabilities' ), 'http://environment.data.gov.uk/ds/wms?SERVICE=WMS&INTERFACE=ENVIRONMENT--6f51a299-351f-4e30-a5a3-2511da9688f7&request=GetCapabilities' )
def test_version_changed(self): assert_equal( wms_capabilities_url( 'http://example/com?service=WMS&request=GetCapabilities&version=1.3', '1.4'), 'http://example/com?service=WMS&request=GetCapabilities&version=1.4' )
def test_real(self): assert_equal( wms_capabilities_url( "http://environment.data.gov.uk/ds/wms?SERVICE=WMS&INTERFACE=ENVIRONMENT--6f51a299-351f-4e30-a5a3-2511da9688f7&request=GetCapabilities" ), "http://environment.data.gov.uk/ds/wms?SERVICE=WMS&INTERFACE=ENVIRONMENT--6f51a299-351f-4e30-a5a3-2511da9688f7&request=GetCapabilities", )
def test_existing_params_left_unchanged(self): assert_equal( wms_capabilities_url( 'http://example/com?service=WFS&request=GetThing'), 'http://example/com?service=WFS&request=GetThing')
def test_base_url(self): assert_equal(wms_capabilities_url('http://example/com?'), 'http://example/com?service=WMS&request=GetCapabilities')
def test_uppercase_params_left_unchanged(self): assert_equal( wms_capabilities_url( 'http://example/com?SERVICE=WFS&REQUEST=GetThing'), 'http://example/com?SERVICE=WFS&REQUEST=GetThing')
def test_version_removed(self): assert_equal( wms_capabilities_url("http://example/com?service=WMS&request=GetCapabilities&version=1.3"), "http://example/com?service=WMS&request=GetCapabilities", )
def test_existing_params_left_unchanged(self): assert_equal( wms_capabilities_url("http://example/com?service=WFS&request=GetThing"), "http://example/com?service=WFS&request=GetThing", )
def test_base_url(self): assert_equal( wms_capabilities_url("http://example/com?"), "http://example/com?service=WMS&request=GetCapabilities" )
def test_uppercase_params_left_unchanged(self): assert_equal( wms_capabilities_url("http://example/com?SERVICE=WFS&REQUEST=GetThing"), "http://example/com?SERVICE=WFS&REQUEST=GetThing", )