Exemplo n.º 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
Exemplo n.º 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'
Exemplo n.º 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
Exemplo n.º 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'
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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'
Exemplo n.º 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'