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

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

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

revision 104 by jgs, Fri Dec 17 07:43:12 2004 UTC revision 153 by jgs, Tue Oct 25 01:51:20 2005 UTC
# Line 5  import os Line 5  import os
5  from esys.escript import *  from esys.escript import *
6  from esys import finley  from esys import finley
7    
 ##      mesh=finley.ReadMesh('myMesh')  
8  class MeshTestCase(unittest.TestCase):  class MeshTestCase(unittest.TestCase):
9    
10    def testMeshIO(self):    def testMeshIO(self):
11        """Test reading and writing finley meshes."""      """Test reading and writing finley meshes."""
12        print      print
13        mesh=finley.Brick(1,1,1,1,1.,1.,1.,1,1,1,1,1)      mesh=finley.Brick(1,1,1,1,1.,1.,1.,1,1,1,1,1)
14        fileName='Junk.msh'      fileName='Junk.msh'
15        mesh.write(fileName)      mesh.write(fileName)
16        mesh2=finley.ReadMesh(fileName)      mesh2=finley.ReadMesh(fileName)
17    
18    def testNonExistantMeshRead(self):    def testNonExistantMeshRead(self):
19        """Test exception generated for attempt to read non existant file."""      """Test exception generated for attempt to read non existant file."""
20        print      print
21        try:      try:
22          mesh2=finley.ReadMesh("NonExistantFilename.msh")        mesh2=finley.ReadMesh("NonExistantFilename.msh")
23          self.failIf(False,'Failed non existant mesh file exception test.')        self.failIf(False,'Failed non existant mesh file exception test.')
24        except Exception, e:      except Exception, e:
25          print e        print e
26    
27    def testSystemMatrix(self):    def testSystemMatrix(self):
28      """Test System Matrix."""      """Test System Matrix."""
29      print      print

Legend:
Removed from v.104  
changed lines
  Added in v.153

  ViewVC Help
Powered by ViewVC 1.1.26