Exemplo n.º 1
0
 def test_do_analysis_xml_catchment(self):
     catchment_str = open('tests/data/catchment.xml').read()
     r = tasks.do_analysis(catchment_str)
     self.assertTrue(r['result'].startswith("# Flood Estimation Report"))
     self.assertIn(
         "Catchment descriptors regression model with nearby catchments adjustment",
         r['result'])
 def test_do_analysis_xml_catchment(self):
     catchment_str = open('tests/data/catchment.xml').read()
     r = tasks.do_analysis(catchment_str)
     self.assertTrue(r['result'].startswith("# Flood Estimation Report"))
     self.assertIn("Catchment descriptors regression model with nearby catchments adjustment", r['result'])
Exemplo n.º 3
0
 def test_do_analysis_with_am(self):
     catchment_str = open('tests/data/8002.CD3').read()
     amax_str = open('tests/data/8002.AM').read()
     r = tasks.do_analysis(catchment_str, amax_str)
     self.assertTrue(r['result'].startswith("# Flood Estimation Report"))
     self.assertIn("Median of annual maximum flow data", r['result'])
 def test_do_analysis_with_am(self):
     catchment_str = open('tests/data/8002.CD3').read()
     amax_str = open('tests/data/8002.AM').read()
     r = tasks.do_analysis(catchment_str, amax_str)
     self.assertTrue(r['result'].startswith("# Flood Estimation Report"))
     self.assertIn("Median of annual maximum flow data", r['result'])