/[escript]/trunk/pyvisi/test/python/run_datacollector.py
ViewVC logotype

Diff of /trunk/pyvisi/test/python/run_datacollector.py

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

revision 1151 by jongui, Thu May 17 04:11:18 2007 UTC revision 1158 by jongui, Tue May 22 04:24:01 2007 UTC
# Line 24  VECTOR_FIELD_CELL_DATA = "velocity_cell" Line 24  VECTOR_FIELD_CELL_DATA = "velocity_cell"
24  TENSOR_FIELD_CELL_DATA = "stress_cell"  TENSOR_FIELD_CELL_DATA = "stress_cell"
25    
26  class TestSourceXml:  class TestSourceXml:
     def tearDown(self):  
         del self.data_collector  
   
27      def setFileName(self, file):      def setFileName(self, file):
28          self.data_collector.setFileName(file_name = \          self.data_collector.setFileName(file_name = \
29                  os.path.join(PYVISI_TEST_MESHES_PATH, file))                  os.path.join(PYVISI_TEST_MESHES_PATH, file))
# Line 64  class TestSourceXml2DPointData(unittest. Line 61  class TestSourceXml2DPointData(unittest.
61          self.data_collector = DataCollector(source = Source.XML)          self.data_collector = DataCollector(source = Source.XML)
62          self.setFileName(FILE_2D)          self.setFileName(FILE_2D)
63    
64        def tearDown(self):
65            del self.data_collector
66    
67      def testSetActiveScalar(self):      def testSetActiveScalar(self):
68          self.setActiveScalar(SCALAR_FIELD_POINT_DATA)          self.setActiveScalar(SCALAR_FIELD_POINT_DATA)
69          self.checkScalarFieldPointData(SCALAR_FIELD_POINT_DATA)          self.checkScalarFieldPointData(SCALAR_FIELD_POINT_DATA)
# Line 81  class TestSourceXml2DCellData(unittest.T Line 81  class TestSourceXml2DCellData(unittest.T
81          self.data_collector = DataCollector(source = Source.XML)          self.data_collector = DataCollector(source = Source.XML)
82          self.setFileName(FILE_2D)          self.setFileName(FILE_2D)
83    
84        def tearDown(self):
85            del self.data_collector
86    
87      def testSetActiveScalar(self):      def testSetActiveScalar(self):
88          self.setActiveScalar(SCALAR_FIELD_CELL_DATA)          self.setActiveScalar(SCALAR_FIELD_CELL_DATA)
89          self.checkScalarFieldCellData(SCALAR_FIELD_CELL_DATA)          self.checkScalarFieldCellData(SCALAR_FIELD_CELL_DATA)
# Line 98  class TestSourceXml3DPointData(unittest. Line 101  class TestSourceXml3DPointData(unittest.
101          self.data_collector = DataCollector(source = Source.XML)          self.data_collector = DataCollector(source = Source.XML)
102          self.setFileName(FILE_3D)          self.setFileName(FILE_3D)
103    
104        def tearDown(self):
105            del self.data_collector
106    
107      def testSetActiveScalar(self):      def testSetActiveScalar(self):
108          self.setActiveScalar(SCALAR_FIELD_POINT_DATA)          self.setActiveScalar(SCALAR_FIELD_POINT_DATA)
109          self.checkScalarFieldPointData(SCALAR_FIELD_POINT_DATA)          self.checkScalarFieldPointData(SCALAR_FIELD_POINT_DATA)
# Line 115  class TestSourceXml3DCellData(unittest.T Line 121  class TestSourceXml3DCellData(unittest.T
121          self.data_collector = DataCollector(source = Source.XML)          self.data_collector = DataCollector(source = Source.XML)
122          self.setFileName(FILE_3D)          self.setFileName(FILE_3D)
123    
124        def tearDown(self):
125            del self.data_collector
126    
127      def testSetActiveScalar(self):      def testSetActiveScalar(self):
128          self.setActiveScalar(SCALAR_FIELD_CELL_DATA)          self.setActiveScalar(SCALAR_FIELD_CELL_DATA)
129          self.checkScalarFieldCellData(SCALAR_FIELD_CELL_DATA)          self.checkScalarFieldCellData(SCALAR_FIELD_CELL_DATA)

Legend:
Removed from v.1151  
changed lines
  Added in v.1158

  ViewVC Help
Powered by ViewVC 1.1.26