예제 #1
0
 def test_catalog_get_data_location_catid_with_no_data(self):
     c = Catalog()
     s3path = c.get_data_location(catalog_id='1010010011AD6E00')
     assert s3path == None
예제 #2
0
 def test_catalog_get_data_location_Landsat(self):
     c = Catalog()
     s3path = c.get_data_location(catalog_id='LC81740532014364LGN00')
     assert s3path == 's3://landsat-pds/L8/174/053/LC81740532014364LGN00'
예제 #3
0
 def test_catalog_get_data_location_nonexistent_catid(self):
     c = Catalog()
     s3path = c.get_data_location(
         catalog_id='nonexistent_asdfasdfasdfdfasffds')
     assert s3path == None
예제 #4
0
 def test_catalog_get_data_location_DG(self):
     c = Catalog()
     s3path = c.get_data_location(catalog_id='1030010045539700')
     assert s3path == 's3://receiving-dgcs-tdgplatform-com/055158926010_01_003'
예제 #5
0
 def test_catalog_get_data_location_catid_with_no_data(self):
     c = Catalog()
     s3path = c.get_data_location(catalog_id='1010010011AD6E00')
     assert s3path == None
예제 #6
0
 def test_catalog_get_data_location_nonexistent_catid(self):
     c = Catalog()
     s3path = c.get_data_location(catalog_id='nonexistent_asdfasdfasdfdfasffds')
     assert s3path == None
예제 #7
0
 def test_catalog_get_data_location_Landsat(self):
     c = Catalog()
     s3path = c.get_data_location(catalog_id='LC81740532014364LGN00')
     assert s3path == 's3://landsat-pds/L8/174/053/LC81740532014364LGN00'
예제 #8
0
 def test_catalog_get_data_location_DG(self):
     c = Catalog()
     s3path = c.get_data_location(catalog_id='1030010045539700')
     assert s3path == 's3://receiving-dgcs-tdgplatform-com/055158926010_01_003'