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

Diff of /trunk/pyvisi/test/python/run_contour_with_lazy_evaluation.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 26  Y_SIZE = 400 Line 26  Y_SIZE = 400
26  JPG_RENDERER = Renderer.OFFLINE_JPG  JPG_RENDERER = Renderer.OFFLINE_JPG
27    
28  class TestContourWithLazyEvaluation:  class TestContourWithLazyEvaluation:
     def tearDown(self):  
         self.scene  
   
29      def render(self, file):      def render(self, file):
30          self.scene.render(image_name = \          self.scene.render(image_name = \
31                  os.path.join(PYVISI_TEST_CONTOUR_IMAGES_PATH, file))                  os.path.join(PYVISI_TEST_CONTOUR_IMAGES_PATH, file))
# Line 37  class TestContourWithLazyEvaluation: Line 34  class TestContourWithLazyEvaluation:
34                  file))[ST_SIZE] > MIN_IMAGE_SIZE)                  file))[ST_SIZE] > MIN_IMAGE_SIZE)
35    
36  class TestContourGenerate(unittest.TestCase, TestContourWithLazyEvaluation):  class TestContourGenerate(unittest.TestCase, TestContourWithLazyEvaluation):
37        def tearDown(self):
38            del self.scene
39    
40      def testContourGenerate(self):      def testContourGenerate(self):
41          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,
42                      y_size = Y_SIZE)                      y_size = Y_SIZE)
# Line 58  class TestContourGenerate(unittest.TestC Line 58  class TestContourGenerate(unittest.TestC
58    
59    
60  class TestContourOnPlaneCut(unittest.TestCase, TestContourWithLazyEvaluation):  class TestContourOnPlaneCut(unittest.TestCase, TestContourWithLazyEvaluation):
61        def tearDown(self):
62            del self.scene
63    
64      def testContourOnPlaneCut(self):      def testContourOnPlaneCut(self):
65          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,
66                  y_size = Y_SIZE)                  y_size = Y_SIZE)
# Line 80  class TestContourOnPlaneCut(unittest.Tes Line 83  class TestContourOnPlaneCut(unittest.Tes
83          self.render("TestContourOnPlaneCutWithLazyEvaluation.jpg")          self.render("TestContourOnPlaneCutWithLazyEvaluation.jpg")
84    
85  class TestContourOnPlaneClip(unittest.TestCase, TestContourWithLazyEvaluation):  class TestContourOnPlaneClip(unittest.TestCase, TestContourWithLazyEvaluation):
86        def tearDown(self):
87            del self.scene
88    
89      def testContourOnPlaneClip(self):      def testContourOnPlaneClip(self):
90          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,
91                  y_size = Y_SIZE)                  y_size = Y_SIZE)

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

  ViewVC Help
Powered by ViewVC 1.1.26