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

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

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

revision 1157 by jongui, Wed May 16 22:45:33 2007 UTC revision 1158 by jongui, Tue May 22 04:24:01 2007 UTC
# Line 27  Y_SIZE = 400 Line 27  Y_SIZE = 400
27  JPG_RENDERER = Renderer.OFFLINE_JPG  JPG_RENDERER = Renderer.OFFLINE_JPG
28    
29  class TestImageWithLazyEvaluation:  class TestImageWithLazyEvaluation:
     def tearDown(self):  
         self.scene  
   
30      def render(self, file):      def render(self, file):
31          self.scene.render(image_name = \          self.scene.render(image_name = \
32                  os.path.join(PYVISI_TEST_IMAGE_IMAGES_PATH, file))                  os.path.join(PYVISI_TEST_IMAGE_IMAGES_PATH, file))
# Line 38  class TestImageWithLazyEvaluation: Line 35  class TestImageWithLazyEvaluation:
35                  file))[ST_SIZE] > MIN_IMAGE_SIZE)                  file))[ST_SIZE] > MIN_IMAGE_SIZE)
36    
37  class TestImage(unittest.TestCase, TestImageWithLazyEvaluation):  class TestImage(unittest.TestCase, TestImageWithLazyEvaluation):
38        def tearDown(self):
39            del self.scene
40    
41      def testImage(self):      def testImage(self):
42          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,
43                  y_size = Y_SIZE)                  y_size = Y_SIZE)

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

  ViewVC Help
Powered by ViewVC 1.1.26