示例#1
0
 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
示例#2
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'
示例#3
0
 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
示例#4
0
 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'
示例#5
0
 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
示例#6
0
 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