コード例 #1
0
 def test_cities_to_shape(self):
     """Test that we can retrieve the cities local to the event."""
     working_dir = shakemap_extract_dir()
     shake_event = ShakeEvent(working_dir=working_dir,
                              event_id=SHAKE_ID,
                              data_is_local_flag=True)
     file_path = shake_event.cities_to_shapefile()
     self.assertTrue(os.path.exists(file_path))
コード例 #2
0
 def test_cities_to_shape(self):
     """Test that we can retrieve the cities local to the event."""
     working_dir = shakemap_extract_dir()
     shake_event = ShakeEvent(
         working_dir=working_dir,
         event_id=SHAKE_ID,
         data_is_local_flag=True)
     file_path = shake_event.cities_to_shapefile()
     self.assertTrue(os.path.exists(file_path))
コード例 #3
0
ファイル: test_shake_event.py プロジェクト: mahardika/inasafe
 def test_cities_to_shape(self):
     """Test that we can retrieve the cities local to the event."""
     shake_event = ShakeEvent(SHAKE_ID, data_is_local_flag=True)
     file_path = shake_event.cities_to_shapefile()
     self.assertTrue(os.path.exists(file_path))
コード例 #4
0
 def test_cities_to_shape(self):
     """Test that we can retrieve the cities local to the event."""
     shake_id = '20120726022003'
     shake_event = ShakeEvent(shake_id)
     file_path = shake_event.cities_to_shapefile()
     assert os.path.exists(file_path)
コード例 #5
0
 def test_cities_to_shape(self):
     """Test that we can retrieve the cities local to the event."""
     shake_event = ShakeEvent(SHAKE_ID, data_is_local_flag=True)
     file_path = shake_event.cities_to_shapefile()
     self.assertTrue(os.path.exists(file_path))