Example #1
0
 def test_eco_not_wanted(self):
     RainGarden.set_config_property(self.instance, 'should_show_eco', False)
     drainage_area_sq_meters = 100000000.0
     feature = self._make_map_feature(RainGarden,
                                      drainage_area=drainage_area_sq_meters)
     runoff_reduced = self._get_runoff_reduced(feature, expect_empty=True)
     self.assertEqual(runoff_reduced, 0)
Example #2
0
 def test_eco_not_wanted(self):
     RainGarden.set_config_property(self.instance, 'should_show_eco', False)
     drainage_area_sq_meters = 100000000.0
     feature = self._make_map_feature(RainGarden,
                                      drainage_area=drainage_area_sq_meters)
     runoff_reduced = self._get_runoff_reduced(feature, expect_empty=True)
     self.assertEqual(runoff_reduced, 0)
Example #3
0
 def test_rain_garden(self):
     RainGarden.set_config_property(self.instance, 'should_show_eco', True)
     drainage_area_sq_meters = 100000000.0
     feature = self._make_map_feature(RainGarden, drainage_area_sq_meters)
     runoff_reduced = self._get_runoff_reduced(feature)
     self._assert_runoff_reduced(
         self.polygon_area_sq_meters, drainage_area_sq_meters,
         .85, runoff_reduced)
Example #4
0
 def test_rain_garden(self):
     RainGarden.set_config_property(self.instance, 'should_show_eco', True)
     drainage_area_sq_meters = 100000000.0
     feature = self._make_map_feature(RainGarden, drainage_area_sq_meters)
     runoff_reduced = self._get_runoff_reduced(feature)
     self._assert_runoff_reduced(self.polygon_area_sq_meters,
                                 drainage_area_sq_meters, .85,
                                 runoff_reduced)