Ejemplo n.º 1
0
 def test_retrieve_all_locations(self):
     h = HandleRecord.from_json(json.loads(self.handle_str))
     assert h is not None
     locations = h.get_all_locations()
     assert locations
     print locations
     assert len(locations) == 2
     assert locations[0] == h.get_url_value()
Ejemplo n.º 2
0
 def test_retrieve_all_locations(self):
     h = HandleRecord.from_json(json.loads(self.handle_str))
     assert h is not None
     locations = h.get_all_locations()
     assert locations
     print locations
     assert len(locations) == 2
     assert locations[0] == h.get_url_value()
Ejemplo n.º 3
0
 def test_from_handle_json_array(self):
     h = HandleRecord.from_json(json.loads(self.handle_str))
     assert h is not None
     assert h.get_url_value() == 'irods://ed-res-01.csc.fi:1247/ed-csc/rc/enes/cmip5/output1/MPI-M/MPI-ESM-LR/rcp45/mon/ocean/Omon/r1i1p1/v20120110/hfsithermds/hfsithermds_Omon_MPI-ESM-LR_rcp45_r1i1p1_229001-230012.nc'
     assert h.get_checksum_value() == '393e2b4fad2df7e30c89d6287969d0b1'
Ejemplo n.º 4
0
 def test_from_epic_json_array(self):
     h = HandleRecord.from_json(json.loads(self.epic_str))
     assert h is not None
     assert h.get_url_value() == 'irods://irods0-eudat.rzg.mpg' \
                                '.de:1247/vzRZGE/eudat/clarin/archive/qfs1/media-archive/lac_data/Ozyurek//20100203172555.imdi'
     assert h.get_checksum_value() == '409b793ccab2c3b7113da1c8f8c1e5e5'
Ejemplo n.º 5
0
 def test_from_handle_json_array(self):
     h = HandleRecord.from_json(json.loads(self.handle_str))
     assert h is not None
     assert h.get_url_value(
     ) == 'irods://ed-res-01.csc.fi:1247/ed-csc/rc/enes/cmip5/output1/MPI-M/MPI-ESM-LR/rcp45/mon/ocean/Omon/r1i1p1/v20120110/hfsithermds/hfsithermds_Omon_MPI-ESM-LR_rcp45_r1i1p1_229001-230012.nc'
     assert h.get_checksum_value() == '393e2b4fad2df7e30c89d6287969d0b1'
Ejemplo n.º 6
0
 def test_from_epic_json_array(self):
     h = HandleRecord.from_json(json.loads(self.epic_str))
     assert h is not None
     assert h.get_url_value() == 'irods://irods0-eudat.rzg.mpg' \
                                '.de:1247/vzRZGE/eudat/clarin/archive/qfs1/media-archive/lac_data/Ozyurek//20100203172555.imdi'
     assert h.get_checksum_value() == '409b793ccab2c3b7113da1c8f8c1e5e5'