File: test_wms_datageo_130.py

package info (click to toggle)
owslib 0.33.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 10,620 kB
  • sloc: xml: 140,558; python: 24,274; makefile: 15
file content (17 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from tests.utils import resource_file

from owslib.wms import WebMapService


def test_wms_capabilities():
    # Fake a request to a WMS Server using saved doc from
    # http://datageo.ambiente.sp.gov.br/serviceTranslator/rest/getXml/IPT_Geoserver_WMS/Risco_Louveira/1449249453587/wms
    xml = open(resource_file('wms_datageo_caps_130.xml'), 'rb').read()
    wms = WebMapService('url', version='1.3.0', xml=xml)

    # Test capabilities
    # -----------------

    assert wms.identification.type == 'WMS'
    assert wms.identification.version == '1.3.0'
    assert wms.identification.title == 'GeoServer Web Map Service'