Update of /cvsroot/pymerase/pymerase/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv14309/tests
Modified Files:
TestSchool.py
Log Message:
either removed unecessary prints or turned them into DebugWarnings to simplify the runtime output. (The first step to providing meaningful error messages.)
Index: TestSchool.py
===================================================================
RCS file: /cvsroot/pymerase/pymerase/tests/TestSchool.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** TestSchool.py 5 Apr 2003 01:35:33 -0000 1.5
--- TestSchool.py 9 Apr 2003 00:08:47 -0000 1.6
***************
*** 133,137 ****
classesInModel={}
parsed_input = translator.read(schema, 'parseGenexSchemaXML', classesInModel)
- print "*** parsed_input: ",parsed_input
translator.write(parsed_input, api_output, 'CreateDBAPI')
translator.write(parsed_input, sql_output, 'CreateSQL')
--- 133,136 ----
***************
*** 155,160 ****
createdb.write(string.join(createDBText, os.linesep))
createdb.close()
!
! exit = os.system("sleep 0 ; psql -h %s -f createdb.sql template1" % (host))
self.failUnless(exit == 0)
--- 154,160 ----
createdb.write(string.join(createDBText, os.linesep))
createdb.close()
!
! log_file = os.path.join(self.current_dir, "psql.log")
! exit = os.system("psql -h %s -f createdb.sql template1 >> %s 2>&1 " % (host, log_file))
self.failUnless(exit == 0)
***************
*** 258,263 ****
# The initial load of data installs 4 example students
- print dir(school)
- print dir(school.school)
student_list = s.getAllObjects(school.Students.Students)
self.failUnless(len(student_list) == 4)
--- 258,261 ----
***************
*** 322,326 ****
erin_loaded = erin_list[0]
- print erin.id(), erin_loaded.id()
self.failUnless(erin.id() == erin_loaded.id())
self.failUnless(erin.getGivenName() == erin_loaded.getGivenName())
--- 320,323 ----
|