Skip to content

Commit

Permalink
Fix test_correct_granule_list_returned
Browse files Browse the repository at this point in the history
Should be using reg_a.granules.avail instead of reg_a.granules
  • Loading branch information
weiji14 committed Jun 8, 2020
1 parent 6826e75 commit 7484403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion icepyx/tests/test_granules.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def test_no_granules_in_search_results():
def test_correct_granule_list_returned():
reg_a = ipd.Icesat2Data('ATL06',[-55, 68, -48, 71],['2019-02-20','2019-02-28'], version='2')
reg_a.avail_granules()
obs_grans = [gran['producer_granule_id'] for gran in reg_a.granules]
obs_grans = [gran['producer_granule_id'] for gran in reg_a.granules.avail]
exp_grans = ['ATL06_20190221121851_08410203_002_01.h5', 'ATL06_20190222010344_08490205_002_01.h5', 'ATL06_20190225121032_09020203_002_01.h5', 'ATL06_20190226005526_09100205_002_01.h5']

assert set(obs_grans) == set(exp_grans)

0 comments on commit 7484403

Please sign in to comment.