/[escript]/trunk/finley/test/python/run_generators.py
ViewVC logotype

Diff of /trunk/finley/test/python/run_generators.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 706 by gross, Sat Apr 8 16:13:02 2006 UTC revision 707 by gross, Wed Apr 12 23:58:02 2006 UTC
# Line 24  class Test_Generators(unittest.TestCase) Line 24  class Test_Generators(unittest.TestCase)
24        dom_file=os.environ['FINLEY_TEST_DATA']+"/"+reference+TEST_FILE_EXT        dom_file=os.environ['FINLEY_TEST_DATA']+"/"+reference+TEST_FILE_EXT
25        dom.write(dom_file)        dom.write(dom_file)
26        dom_string=open(dom_file).read().splitlines()        dom_string=open(dom_file).read().splitlines()
27        ref_string=open(os.environ['FINLEY_WORKING_DIR']+"/"+reference).read().splitlines()        ref_string=open(os.environ['FINLEY_WORKDIR']+"/"+reference).read().splitlines()
28        self.failUnlessEqual(len(dom_string),len(ref_string),"number of lines in mesh files does not match reference")        self.failUnlessEqual(len(dom_string),len(ref_string),"number of lines in mesh files does not match reference")
29        for l in range(1,len(ref_string)):        for l in range(1,len(ref_string)):
30           self.failUnlessEqual(dom_string[l].strip(),ref_string[l].strip(),"line %d (%s) in mesh files does not match reference (%s)"%(l,ref_string[l].strip(),dom_string[l].strip()))           self.failUnlessEqual(dom_string[l].strip(),ref_string[l].strip(),"line %d (%s) in mesh files does not match reference (%s)"%(l,ref_string[l].strip(),dom_string[l].strip()))

Legend:
Removed from v.706  
changed lines
  Added in v.707

  ViewVC Help
Powered by ViewVC 1.1.26