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'>")
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'>")
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')