/[escript]/trunk/escript/test/python/test_objects.py
ViewVC logotype

Diff of /trunk/escript/test/python/test_objects.py

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

revision 4018 by caltinay, Thu Sep 27 00:54:10 2012 UTC revision 4019 by jfenwick, Thu Oct 11 08:12:55 2012 UTC
# Line 216  class Test_saveCSV(unittest.TestCase): Line 216  class Test_saveCSV(unittest.TestCase):
216          self.assertEquals(line, 'U/0|U/1|V\n')          self.assertEquals(line, 'U/0|U/1|V\n')
217    
218     def test_saveCSV_functionspaces(self):     def test_saveCSV_functionspaces(self):
219          for i in xrange(len(self.functionspaces)):          for i in range(len(self.functionspaces)):
220              FS=self.functionspaces[i]              FS=self.functionspaces[i]
221              X=FS(self.domain).getX()              X=FS(self.domain).getX()
222              X0=X[0]              X0=X[0]
# Line 257  class Test_saveCSV(unittest.TestCase): Line 257  class Test_saveCSV(unittest.TestCase):
257              line=f.readline()              line=f.readline()
258              line_got=[float(elt) for elt in line.split(',')]              line_got=[float(elt) for elt in line.split(',')]
259              self.assertEquals(len(self.firstline[i]),len(line_got))              self.assertEquals(len(self.firstline[i]),len(line_got))
260              for j in xrange(len(self.firstline[i])):              for j in range(len(self.firstline[i])):
261                  if self.firstline[i][j] is not None:                  if self.firstline[i][j] is not None:
262                      self.assertAlmostEquals(self.firstline[i][j],line_got[j])                      self.assertAlmostEquals(self.firstline[i][j],line_got[j])
263              linecount=1              linecount=1

Legend:
Removed from v.4018  
changed lines
  Added in v.4019

  ViewVC Help
Powered by ViewVC 1.1.26