/[escript]/branches/trilinos_from_5897/dudley/test/python/run_inputOutput.py
ViewVC logotype

Diff of /branches/trilinos_from_5897/dudley/test/python/run_inputOutput.py

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

revision 6078 by caltinay, Wed Mar 2 04:13:26 2016 UTC revision 6079 by caltinay, Mon Mar 21 12:22:38 2016 UTC
# Line 38  Test suite for input and output of meshe Line 38  Test suite for input and output of meshe
38  import esys.escriptcore.utestselect as unittest, sys  import esys.escriptcore.utestselect as unittest, sys
39  from esys.escriptcore.testing import *  from esys.escriptcore.testing import *
40  from esys.escript import *  from esys.escript import *
41  from esys.dudley import Rectangle, Brick, LoadMesh, ReadMesh, ReadGmsh, ReadGmsh  from esys.dudley import Rectangle, Brick, LoadMesh, ReadMesh, ReadGmsh
42    
43  try:  try:
44       DUDLEY_WORKDIR=os.environ['DUDLEY_WORKDIR']       DUDLEY_WORKDIR=os.environ['DUDLEY_WORKDIR']
# Line 146  class Test_InputOutput(unittest.TestCase Line 146  class Test_InputOutput(unittest.TestCase
146    
147       def test_flyTags(self):       def test_flyTags(self):
148          dom=ReadMesh(os.path.join(DUDLEY_TEST_MESH_PATH, "tagtest2.fly"))          dom=ReadMesh(os.path.join(DUDLEY_TEST_MESH_PATH, "tagtest2.fly"))
149          tags=dom.showTagNames().split(', ')          tags=sorted(dom.showTagNames().split(', '))
150          self.assertEqual(tags,['tag1', 'tag2', 'tag3', 'tag4', 'All'])          self.assertEqual(tags,sorted(['tag1', 'tag2', 'tag3', 'tag4', 'All']))
151          self.assertEqual(dom.getTag('tag1'),5,'error with tag1')          self.assertEqual(dom.getTag('tag1'),5,'error with tag1')
152          self.assertEqual(dom.getTag('tag2'),8,'error with tag2,')          self.assertEqual(dom.getTag('tag2'),8,'error with tag2,')
153          self.assertEqual(dom.getTag('tag3'),6,'error with tag3')          self.assertEqual(dom.getTag('tag3'),6,'error with tag3')

Legend:
Removed from v.6078  
changed lines
  Added in v.6079

  ViewVC Help
Powered by ViewVC 1.1.26