/[escript]/trunk/pyvisi_old/test/python/opendx/test_image.py
ViewVC logotype

Contents of /trunk/pyvisi_old/test/python/opendx/test_image.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 786 - (show annotations)
Tue Jul 25 04:58:05 2006 UTC (15 years, 4 months ago) by gross
File MIME type: text/x-python
File size: 3679 byte(s)
switched off pyvisi
1 """
2 Class and functions for testing the Image class
3
4 @var __author__: name of author
5 @var __license__: licence agreement
6 @var __copyright__: copyrights
7 @var __url__: url entry point on documentation
8 @var __version__: version
9 @var __date__: date of the version
10 """
11
12 __copyright__=""" Copyright (c) 2006 by ACcESS MNRF
13 http://www.access.edu.au
14 Primary Business: Queensland, Australia"""
15 __license__="""Licensed under the Open Software License version 3.0
16 http://www.opensource.org/licenses/osl-3.0.php"""
17 __author__="Paul Cochrane"
18 __url__="http://www.iservo.edu.au/esys"
19 __version__="$Revision$"
20 __date__="$Date$"
21
22
23 import unittest
24 import sys,os,string
25 here = os.getcwd() + '/../../'
26 sys.path.append(here)
27 # this should import all of the pyvisi stuff needed
28 from pyvisi import *
29 # this should import the renderer specific stuff
30 from pyvisi.renderers.opendx import *
31
32
33 class TestImage(unittest.TestCase):
34 """
35 The main test class
36 """
37
38 def testFunction(self):
39 """
40 A test function
41 """
42 self.assertEqual()
43 self.assertRaises()
44 self.assert_()
45
46 if __name__ == '__main__':
47 unittest.main()
48
49
50 """
51 Class and functions for testing the JpegImage class
52 """
53
54 class TestJpegImage(unittest.TestCase):
55 """
56 The main test class
57 """
58
59 def testFunction(self):
60 """
61 A test function
62 """
63 self.assertEqual()
64 self.assertRaises()
65 self.assert_()
66
67 if __name__ == '__main__':
68 unittest.main()
69
70
71 """
72 Class and functions for testing the PbmImage class
73 """
74
75 class TestPbmImage(unittest.TestCase):
76 """
77 The main test class
78 """
79
80 def testFunction(self):
81 """
82 A test function
83 """
84 self.assertEqual()
85 self.assertRaises()
86 self.assert_()
87
88 if __name__ == '__main__':
89 unittest.main()
90
91
92 """
93 Class and functions for testing the PdfImage class
94 """
95
96 class TestPdfImage(unittest.TestCase):
97 """
98 The main test class
99 """
100
101 def testFunction(self):
102 """
103 A test function
104 """
105 self.assertEqual()
106 self.assertRaises()
107 self.assert_()
108
109 if __name__ == '__main__':
110 unittest.main()
111
112
113 """
114 Class and functions for testing the PngImage class
115 """
116
117 class TestPngImage(unittest.TestCase):
118 """
119 The main test class
120 """
121
122 def testFunction(self):
123 """
124 A test function
125 """
126 self.assertEqual()
127 self.assertRaises()
128 self.assert_()
129
130 if __name__ == '__main__':
131 unittest.main()
132
133
134 """
135 Class and functions for testing the PnmImage class
136 """
137
138 class TestPnmImage(unittest.TestCase):
139 """
140 The main test class
141 """
142
143 def testFunction(self):
144 """
145 A test function
146 """
147 self.assertEqual()
148 self.assertRaises()
149 self.assert_()
150
151 if __name__ == '__main__':
152 unittest.main()
153
154
155 """
156 Class and functions for testing the PsImage class
157 """
158
159 class TestPsImage(unittest.TestCase):
160 """
161 The main test class
162 """
163
164 def testFunction(self):
165 """
166 A test function
167 """
168 self.assertEqual()
169 self.assertRaises()
170 self.assert_()
171
172 if __name__ == '__main__':
173 unittest.main()
174
175
176 """
177 Class and functions for testing the TiffImage class
178 """
179
180 class TestTiffImage(unittest.TestCase):
181 """
182 The main test class
183 """
184
185 def testFunction(self):
186 """
187 A test function
188 """
189 self.assertEqual()
190 self.assertRaises()
191 self.assert_()
192
193 if __name__ == '__main__':
194 unittest.main()
195
196
197 # vim: expandtab shiftwidth=4:

  ViewVC Help
Powered by ViewVC 1.1.26