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

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

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

revision 1150 by jongui, Wed May 16 22:45:33 2007 UTC revision 1151 by jongui, Thu May 17 04:11:18 2007 UTC
# Line 41  class TestMapWithLazyEvaluation: Line 41  class TestMapWithLazyEvaluation:
41          self.failUnless(os.stat(os.path.join(PYVISI_TEST_MAP_IMAGES_PATH, \          self.failUnless(os.stat(os.path.join(PYVISI_TEST_MAP_IMAGES_PATH, \
42                  file))[ST_SIZE] > MIN_IMAGE_SIZE)                  file))[ST_SIZE] > MIN_IMAGE_SIZE)
43    
44  class TestMap(unittest.TestCase, TestMapWithLazyEvaluation):  class TestMapLazy(unittest.TestCase, TestMapWithLazyEvaluation):
45      def testMap(self):      def testMapLazy(self):
46    
47          # Create a scene with four viewports.          # Create a scene with four viewports.
48          s = Scene(renderer = JPG_RENDERER, num_viewport = 4, x_size = X_SIZE,          s = Scene(renderer = JPG_RENDERER, num_viewport = 4, x_size = X_SIZE,
# Line 81  class TestMap(unittest.TestCase, TestMap Line 81  class TestMap(unittest.TestCase, TestMap
81            
82          self.render("TestMapWithLazyEvaluation.jpg")          self.render("TestMapWithLazyEvaluation.jpg")
83    
84  class TestMapOnPlaneCut(unittest.TestCase, TestMapWithLazyEvaluation):  class TestMapOnPlaneCutLazy(unittest.TestCase, TestMapWithLazyEvaluation):
85      def testMapOnPlaneCut(self):      def testMapOnPlaneCutLazy(self):
86          s = Scene(renderer = JPG_RENDERER, num_viewport = 4, x_size = X_SIZE,          s = Scene(renderer = JPG_RENDERER, num_viewport = 4, x_size = X_SIZE,
87                  y_size = Y_SIZE)                  y_size = Y_SIZE)
88          self.scene = s          self.scene = s
# Line 121  class TestMapOnPlaneCut(unittest.TestCas Line 121  class TestMapOnPlaneCut(unittest.TestCas
121          self.render("TestMapOnPlaneCutWithLazyEvaluation.jpg")          self.render("TestMapOnPlaneCutWithLazyEvaluation.jpg")
122    
123    
124  class TestMapOnPlaneClip(unittest.TestCase, TestMapWithLazyEvaluation):  class TestMapOnPlaneClipLazy(unittest.TestCase, TestMapWithLazyEvaluation):
125      def testMapOnPlaneClip(self):      def testMapOnPlaneClipLazy(self):
126          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,
127                  y_size = Y_SIZE)                  y_size = Y_SIZE)
128          self.scene = s          self.scene = s
# Line 155  class TestMapOnPlaneClip(unittest.TestCa Line 155  class TestMapOnPlaneClip(unittest.TestCa
155          self.render("TestMapOnPlaneClipWithLazyEvaluation.jpg")          self.render("TestMapOnPlaneClipWithLazyEvaluation.jpg")
156    
157    
158  class TestMapOnScalarClip(unittest.TestCase, TestMapWithLazyEvaluation):  class TestMapOnScalarClipLazy(unittest.TestCase, TestMapWithLazyEvaluation):
159      def testMapOnScalarClip(self):      def testMapOnScalarClipLazy(self):
160          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,          s = Scene(renderer = JPG_RENDERER, num_viewport = 1, x_size = X_SIZE,
161                  y_size = Y_SIZE)                  y_size = Y_SIZE)
162          self.scene = s          self.scene = s
# Line 177  class TestMapOnScalarClip(unittest.TestC Line 177  class TestMapOnScalarClip(unittest.TestC
177  ##############################################################################  ##############################################################################
178  if __name__ == '__main__':  if __name__ == '__main__':
179      suite = unittest.TestSuite()      suite = unittest.TestSuite()
180      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMap))      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapLazy))
181      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnPlaneCut))      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnPlaneCutLazy))
182      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnPlaneClip))      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnPlaneClipLazy))
183      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnScalarClip))      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestMapOnScalarClipLazy))
184      unittest.TextTestRunner(verbosity=2).run(suite)      unittest.TextTestRunner(verbosity=2).run(suite)

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

  ViewVC Help
Powered by ViewVC 1.1.26