Skip to content

Commit

Permalink
Add test for regex fix in Unidata#173
Browse files Browse the repository at this point in the history
  • Loading branch information
dopplershift committed Dec 4, 2017
1 parent e3669ff commit 608a972
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions siphon/tests/test_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,16 @@ def test_datasets_nearest_time():
assert nearest.title == 'NAM_CONUS_20km_noaaport_20150528_1800.grib1'


@recorder.use_cassette('top_level_20km_rap_catalog')
def test_datasets_nearest_time_30():
"""Test getting dataset by time --check for a day in the 30s (#gh-173)"""
url = ('http://thredds.ucar.edu/thredds/catalog/grib/NCEP/NAM/'
'CONUS_20km/noaaport/catalog.xml')
cat = TDSCatalog(url)
nearest = cat.catalog_refs.filter_time_nearest(datetime(2015, 5, 30, 11))
assert nearest.title == 'NAM_CONUS_20km_noaaport_20150530_1200.grib1'


@recorder.use_cassette('top_level_20km_rap_catalog')
def test_datasets_nearest_time_raises():
"""Test getting dataset by time using filenames."""
Expand Down

0 comments on commit 608a972

Please sign in to comment.