Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

Commit

Permalink
Updating the test case oceancolor_test.test_file_search
Browse files Browse the repository at this point in the history
  • Loading branch information
Omkar20895 committed Oct 27, 2017
1 parent d994998 commit a15c0ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion podaac/tests/oceancolor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ def test_file_search(self):

assert data != None
print(data)
assert type(data) is str
assert type(data) is type(u'')
assert len(data) != 0

assert_raises(Exception, self.oceancolor.file_search, sensor='random')
assert_raises(Exception, self.oceancolor.file_search, sdate='1996-11-01', edate='1997-01-01',
dtype='L3b', add_url='1', results_as_file='1', search='*DAY_CHL*')

# test case for the function get_file(()
def test_get_file(self):
url = 'https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/O1996307.L3b_DAY_CHL.nc'
Expand Down

0 comments on commit a15c0ef

Please sign in to comment.