コード例 #1
0
ファイル: test_idaho.py プロジェクト: jbants/gbdxtools
 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
ファイル: test_idaho.py プロジェクト: lababidi/gbdxtools
 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
ファイル: test_idaho.py プロジェクト: lababidi/gbdxtools
 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
ファイル: test_idaho.py プロジェクト: DigitalGlobe/gbdxtools
 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