Example #1
0
 def test_search_data_valid_id(self):
     store = CDSDataStore(cds_api_url=_CDS_API_URL,
                          cds_api_key=_CDS_API_KEY)
     result = list(store.search_data('dataset'))
     self.assertTrue(len(result) > 0)
Example #2
0
 def test_search_data_invalid_id(self):
     store = CDSDataStore(cds_api_url=_CDS_API_URL,
                          cds_api_key=_CDS_API_KEY)
     with self.assertRaises(DataStoreError):
         store.search_data('This is an invalid ID.')