diff --git a/owslib/wmts.py b/owslib/wmts.py index 19717dc2..3b30780d 100644 --- a/owslib/wmts.py +++ b/owslib/wmts.py @@ -816,7 +816,7 @@ def __init__(self, elem, parent=None, index=0, parse_remote_metadata=False): values = [f.text for f in dim.findall(_DIMENSION_VALUE_TAG)] if len(values) == 0: - raise ValueError( + raise ValueError( '%s list of values can not be empty' % (dim,) ) dimension['values'] = values diff --git a/tests/test_opensearch_creodias.py b/tests/test_opensearch_creodias.py index 9bb8fe97..2926d578 100644 --- a/tests/test_opensearch_creodias.py +++ b/tests/test_opensearch_creodias.py @@ -19,7 +19,7 @@ def test_opensearch_creodias(): assert o.description.description == 'Sentinel-1 Collection' assert o.description.language == 'en' - assert len(o.description.urls) == 2 + assert len(o.description.urls) == 1 assert len(o.description.urls['application/json']['parameters']) > 0