Salome HOME
integration of modifications from Gerald Nicolas
[modules/homard.git] / tests / test_2.py
index d6dd949a117ad181be30b6ca1a6e8034f6dbc257..d5ac783ff0b71ef514918d80cb2f0052d391e622 100644 (file)
@@ -22,7 +22,7 @@ Python script for HOMARD
 Copyright EDF-R&D 2010, 2013
 Test test_2
 """
-__revision__ = "V1.6"
+__revision__ = "V1.7"
 
 #========================================================================
 Test_Name = "test_2"
@@ -154,9 +154,8 @@ except Exception, e:
 #
 # Test of the result
 #
-s_iter_test_file = str(n_iter_test_file)
-test_file_suff = "apad.0" + s_iter_test_file + ".bilan"
-rep_test_file = "I0" + s_iter_test_file
+test_file_suff = "apad.%02d.bilan" % n_iter_test_file
+rep_test_file = "I%02d" % n_iter_test_file
 #
 test_file = os.path.join(Rep_Test, Test_Name + "." + test_file_suff)
 mess_error_ref = "\nReference file: " + test_file