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

Diff of /trunk/pyvisi/test/python/run_image.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 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 TestImage:  class TestImage:
     def tearDown(self):  
         self.scene  
         self.data_collector  
         self.map  
         self.image  
         self.image_reader  
   
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 62  class TestImageOnAMap(unittest.TestCase, Line 55  class TestImageOnAMap(unittest.TestCase,
55    
56          self.image = Image(scene = self.scene, image_reader = self.image_reader)          self.image = Image(scene = self.scene, image_reader = self.image_reader)
57    
58        def tearDown(self):
59            del self.scene
60            del self.data_collector
61            del self.map
62            del self.image
63            del self.image_reader
64    
65      def testImage(self):      def testImage(self):
66          self.image.translate(0, 0, -1)          self.image.translate(0, 0, -1)
67          self.image.setPoint1(GlobalPosition(2, 0, 0))          self.image.setPoint1(GlobalPosition(2, 0, 0))

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

  ViewVC Help
Powered by ViewVC 1.1.26