コード例 #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'])
コード例 #2
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'])
コード例 #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'])
コード例 #4
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'])