def test_check_attributes(self): atts = { 'file_name': 'yeah', 'exposure_latitude': 'latitude', 'exposure_longitude': 'longitude' } inst = jobs.JOBS[jobs.LOADCSVEXPOSURE] self.assertTrue(check_attributes(inst, atts))
def test_check_attributesV(self): atts = {'variability_method': {'domestic_wind_2012': 'mean'}} inst = jobs.JOBS[jobs.SELECTVULNFUNCTION] self.assertTrue(check_attributes(inst, atts))
def test_check_attributesIV(self): atts = {'file_name': 'yeah'} inst = jobs.JOBS[jobs.LOADCSVEXPOSURE] self.assertTrue(check_attributes(inst, atts))