/[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 1148 by jongui, Wed May 16 22:45:33 2007 UTC revision 1151 by jongui, Thu May 17 04:11:18 2007 UTC
# Line 36  class TestContourWithLazyEvaluation: Line 36  class TestContourWithLazyEvaluation:
36          self.failUnless(os.stat(os.path.join(PYVISI_TEST_CONTOUR_IMAGES_PATH, \          self.failUnless(os.stat(os.path.join(PYVISI_TEST_CONTOUR_IMAGES_PATH, \
37                  file))[ST_SIZE] > MIN_IMAGE_SIZE)                  file))[ST_SIZE] > MIN_IMAGE_SIZE)
38    
39  class TestContour(unittest.TestCase, TestContourWithLazyEvaluation):  class TestContourGenerate(unittest.TestCase, TestContourWithLazyEvaluation):
40      def testContour(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)
43          self.scene = s          self.scene = s
# Line 108  class TestContourOnPlaneClip(unittest.Te Line 108  class TestContourOnPlaneClip(unittest.Te
108    
109  if __name__ == '__main__':  if __name__ == '__main__':
110      suite = unittest.TestSuite()      suite = unittest.TestSuite()
111      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestContour))      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestContourGenerate))
112      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestContourOnPlaneCut))      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestContourOnPlaneCut))
113      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestContourOnPlaneClip))      suite.addTest(unittest.TestLoader().loadTestsFromTestCase(TestContourOnPlaneClip))
114      unittest.TextTestRunner(verbosity=2).run(suite)      unittest.TextTestRunner(verbosity=2).run(suite)

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

  ViewVC Help
Powered by ViewVC 1.1.26