geopython / OWSLib

OWSLib is a Python package for client programming with Open Geospatial Consortium (OGC) web service (hence OWS) interface standards, and their related content models.
https://owslib.readthedocs.io
BSD 3-Clause "New" or "Revised" License
393 stars 278 forks source link

Doctest wms_JPLCapabilities.txt fails due to dictionary key sorting #14

Closed tomkralidis closed 12 years ago

tomkralidis commented 12 years ago

Testing trace and repository version are listed below. Diff file correcting this issue is attached.

Tested using: Python 2.6.4

{{{ $ svn info Path: . URL: http://svn.gispython.org/svn/gispy/OWSLib/trunk Repository Root: http://svn.gispython.org/svn/gispy Repository UUID: b426a367-1105-0410-b9ff-cdf4ab011145 Revision: 1675 Node Kind: directory Schedule: normal Last Changed Author: domlowe Last Changed Rev: 1675 Last Changed Date: 2010-09-02 05:10:13 -0600 (Thu, 02 Sep 2010) }}}

{{{

FAIL: Doctest: wms_JPLCapabilities.txt

Traceback (most recent call last): File "/usr/lib/python2.6/doctest.py", line 2145, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for wms_JPLCapabilities.txt File "/usr/local/OWSLib/trunk/tests/wms_JPLCapabilities.txt", line 0


File "/usr/local/OWSLib/trunk/tests/wms_JPLCapabilities.txt", line 57, in wms_JPLCapabilities.txt Failed example: wms.contents.keys() Expected: ['us_landsat_wgs84', 'modis', 'global_mosaic_base', 'huemapped_srtm', 'srtm_mag', 'daily_terra', 'us_ned', 'us_elevation', 'global_mosaic', 'daily_terra_ndvi', 'daily_aqua_ndvi', 'daily_aqua_721', 'daily_aqua', 'BMNG', 'srtmplus', None, 'us_colordem', 'worldwind_dem', 'daily_terra_721'] Got: [None, 'us_landsat_wgs84', 'global_mosaic_base', 'huemapped_srtm', 'srtm_mag', 'daily_terra', 'modis', 'us_elevation', 'global_mosaic', 'daily_terra_ndvi', 'daily_aqua_ndvi', 'daily_aqua_721', 'daily_aqua', 'BMNG', 'srtmplus', 'us_colordem', 'worldwind_dem', 'us_ned', 'daily_terra_721']


Ran 13 tests in 223.622s

FAILED (failures=1) }}}

tomkralidis commented 12 years ago

Fixed in r1744.