def test_catchment_fetcher_using_unregulated_feld_nr(self):
     cf = CatchmentFetcher("unregulated", "FELTNR", self.epsg_id)
     id_list = [1225]
     r = cf.fetch(id_list=id_list)
     self.assertIsNotNone(r)
     self.assertIsNotNone(r[id_list[0]])
 def test_catchment_fetcher_using_regulated_catch_id(self):
     id_list = [2402]  # stuggusjøen catch_id
     cf = CatchmentFetcher("regulated", "CATCH_ID", self.epsg_id)
     r = cf.fetch(id_list=id_list)
     self.assertIsNotNone(r)
     self.assertIsNotNone(r[id_list[0]])
 def test_catchment_fetcher_using_regulated_power_plant_id(self):
     id_list = [236]  # RanaLangvatn power_plant_id
     cf = CatchmentFetcher("regulated", "POWER_PLANT_ID", self.epsg_id)
     r = cf.fetch(id_list=id_list)
     self.assertIsNotNone(r)
     self.assertIsNotNone(r[id_list[0]])
 def test_catchment_fetcher_using_unregulated_feld_nr(self):
     cf = CatchmentFetcher("unregulated", "FELTNR", self.epsg_id)
     id_list = [1225]
     r = cf.fetch(id_list=id_list)
     self.assertIsNotNone(r)
     self.assertIsNotNone(r[id_list[0]])
 def test_catchment_fetcher_using_regulated_catch_id(self):
     id_list = [2402]  # stuggusjøen catch_id
     cf = CatchmentFetcher("regulated", "CATCH_ID", self.epsg_id)
     r = cf.fetch(id_list=id_list)
     self.assertIsNotNone(r)
     self.assertIsNotNone(r[id_list[0]])
 def test_catchment_fetcher_using_regulated_power_plant_id(self):
     id_list = [236]  # RanaLangvatn power_plant_id
     cf = CatchmentFetcher("regulated", "POWER_PLANT_ID", self.epsg_id)
     r = cf.fetch(id_list=id_list)
     self.assertIsNotNone(r)
     self.assertIsNotNone(r[id_list[0]])