old_contents: #!/usr/bin/python
  
  # Import the otb applications package
  import otbApplication, sys
  
  # The following line creates an instance of the StereoSensorModelToElevationMap application 
  StereoSensorModelToElevationMap = otbApplication.Registry.CreateApplication("StereoSensorModelToElevationMap")
  
  # Needed because of bug 440
  StereoSensorModelToElevationMap.Init()
  
  # The following lines set all the application parameters:
  StereoSensorModelToElevationMap.SetParameterString("ref", sys.argv[1])
  
  StereoSensorModelToElevationMap.SetParameterString("sec", sys.argv[2])
  
  StereoSensorModelToElevationMap.SetParameterString("out", sys.argv[3])
  
  StereoSensorModelToElevationMap.SetParameterString("dem", "DEM")
  
  # The following line execute the application
  StereoSensorModelToElevationMap.ExecuteAndWriteOutput()
  
new_contents: #!/usr/bin/python
  
  # Import the otb applications package
  import otbApplication, sys
  
  # The following line creates an instance of the StereoSensorModelToElevationMap application 
  StereoSensorModelToElevationMap = otbApplication.Registry.CreateApplication("StereoSensorModelToElevationMap")
  
  # The following lines set all the application parameters:
  StereoSensorModelToElevationMap.SetParameterString("ref", sys.argv[1])
  StereoSensorModelToElevationMap.SetParameterString("sec", sys.argv[2])
  StereoSensorModelToElevationMap.SetParameterString("out", sys.argv[3])
  StereoSensorModelToElevationMap.SetParameterString("elev", "dem")
  StereoSensorModelToElevationMap.SetParameterString("elev.dem.path",  "dem_wrong_path")
  StereoSensorModelToElevationMap.SetParameterString("elev.dem.geoid", "geoid_wrong_file")
  
  # This bug verifies that no exception is raised during ExecuteAndWriteOutput
  try:
    StereoSensorModelToElevationMap.ExecuteAndWriteOutput()
  except:
    sys.exit( 1 )
  
  sys.exit( 0 )
  
subject: fix code for test Bug441