Exemplo n.º 1
0
 def test_analysis_setup(self):
     exposure = get_exposure(self.args)
     hazard = get_hazard(self.args)
     analysis = analysis_setup(self.args, hazard, exposure)
     self.assertEqual(
         str(type(analysis)),
         "<class 'inasafe.safe.utilities.analysis.Analysis'>")
Exemplo n.º 2
0
 def test_analysis_setup(self):
     exposure = get_exposure(self.args)
     hazard = get_hazard(self.args)
     analysis = impact_function_setup(self.args, hazard, exposure)
     self.assertEqual(str(type(analysis)),
                      "<class 'inasafe.safe.utilities.analysis.Analysis'>")
Exemplo n.º 3
0
 def test_get_hazard(self):
     """Test building a hazard layer from file."""
     hazard = get_hazard(self.args)
     self.assertEqual(hazard.isValid(), True, 'Hazard layer is not valid')
Exemplo n.º 4
0
 def test_get_hazard(self):
     """Test building a hazard layer from file."""
     hazard = get_hazard(self.args)
     self.assertEqual(hazard.isValid(), True, 'Hazard layer is not valid')