X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=bin%2Ftest_hello.py;fp=bin%2Ftest_hello.py;h=1fe929939860426c00978c43b369d2e7d8a690d5;hb=7f97c980db050ab67db88f8b15cb612b10f9a9bd;hp=28c76eee5f279f2a7331c522d6b8ab136cd64101;hpb=dd18a1b2a240b54db54274bb994a8e2c12680a09;p=samples%2Fhello.git diff --git a/bin/test_hello.py b/bin/test_hello.py index 28c76ee..1fe9299 100755 --- a/bin/test_hello.py +++ b/bin/test_hello.py @@ -30,28 +30,28 @@ import HELLO_ORB hello = salome.lcc.FindOrLoadComponent('FactoryServer', 'HELLO') # test HELLO module -print "Say hello to John: should be OK" +print("Say hello to John: should be OK") if hello.hello(salome.myStudy, "John") != HELLO_ORB.OP_OK: - print "ERROR: wrong operation code is returned" + print("ERROR: wrong operation code is returned") else: - print "OK" -print "Say hello to John: should answer 'already met'" + print("OK") +print("Say hello to John: should answer 'already met'") if hello.hello(salome.myStudy, "John") != HELLO_ORB.OP_ERR_ALREADY_MET: - print "ERROR: wrong operation code is returned" + print("ERROR: wrong operation code is returned") else: - print "OK" -print "Say goodbye to Margaret: should answer 'did not meet yet'" + print("OK") +print("Say goodbye to Margaret: should answer 'did not meet yet'") if hello.goodbye(salome.myStudy, "Margaret") != HELLO_ORB.OP_ERR_DID_NOT_MEET: - print "ERROR: wrong operation code is returned" + print("ERROR: wrong operation code is returned") else: - print "OK" -print "Say hello to John: should be OK" + print("OK") +print("Say hello to John: should be OK") if hello.goodbye(salome.myStudy, "John") != HELLO_ORB.OP_OK: - print "ERROR: wrong operation code is returned" + print("ERROR: wrong operation code is returned") else: - print "OK" -print "Say hello to John: should answer 'did not meet yet'" + print("OK") +print("Say hello to John: should answer 'did not meet yet'") if hello.goodbye(salome.myStudy, "John") != HELLO_ORB.OP_ERR_DID_NOT_MEET: - print "ERROR: wrong operation code is returned" + print("ERROR: wrong operation code is returned") else: - print "OK" + print("OK")