def test_idaho_create_leaflet_viewer(self): i = Idaho() catid = '10400100203F1300' temp_file = tempfile.mkstemp(".html", "test_idaho_create_leaflet_viewer") i.create_leaflet_viewer(i.get_images_by_catid(catid=catid), temp_file[1]) assert os.path.getsize(temp_file[1]) > 0
def test_idaho_describe_images(self): i = Idaho(self.gbdx) catid = '10400100203F1300' description = i.describe_images(i.get_images_by_catid(catid=catid)) assert description['10400100203F1300']['parts'][1]['PAN']['id'] =='b1f6448b-aecd-4d9b-99ec-9cad8d079043'
def test_idaho_get_images_by_catid(self): i = Idaho(self.gbdx) catid = '10400100203F1300' results = i.get_images_by_catid(catid=catid) assert len(results['results']) == 12
def test_idaho_describe_images(self): i = Idaho() catid = '10400100203F1300' description = i.describe_images(i.get_images_by_catid(catid=catid)) assert description['10400100203F1300']['parts'][1]['PAN'][ 'id'] == 'b1f6448b-aecd-4d9b-99ec-9cad8d079043'
def test_idaho_get_images_by_catid(self): i = Idaho() catid = '10400100203F1300' results = i.get_images_by_catid(catid=catid) assert len(results['results']) == 12
def test_idaho_create_leaflet_viewer(self): i = Idaho() catid = '10400100203F1300' temp_file = tempfile.mkstemp(".html", "test_idaho_create_leaflet_viewer") i.create_leaflet_viewer(i.get_images_by_catid(catid=catid), temp_file[1]) assert os.path.getsize(temp_file[1]) > 0