예제 #1
0
 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))
예제 #2
0
 def test_check_attributesV(self):
     atts = {'variability_method': {'domestic_wind_2012': 'mean'}}
     inst = jobs.JOBS[jobs.SELECTVULNFUNCTION]
     self.assertTrue(check_attributes(inst, atts))
예제 #3
0
 def test_check_attributesIV(self):
     atts = {'file_name': 'yeah'}
     inst = jobs.JOBS[jobs.LOADCSVEXPOSURE]
     self.assertTrue(check_attributes(inst, atts))