/[ascend]/trunk/pygtk/test.py
ViewVC logotype

Contents of /trunk/pygtk/test.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 932 - (show annotations) (download) (as text)
Thu Nov 23 13:23:33 2006 UTC (13 years, 11 months ago) by johnpye
File MIME type: text/x-python
File size: 874 byte(s)
Working on bugs in the 'error_reporter_tree' stuff.
Removed binary files from base/generic/utilities/test (these are built as needed by SCons now)
1 import unittest
2
3 class AscendTest(unittest.TestCase):
4
5 def testIDA(self):
6 import ascpy
7 try:
8 L = ascpy.Library()
9 L.load('johnpye/shm.a4c')
10 M = L.findType('shm').getSimulation('sim')
11 M.solve(ascpy.Solver("QRSlv"),ascpy.SolverReporter())
12 except Exception,e:
13 self.fail(str(e))
14
15 def testloading(self):
16 import ascpy
17
18 def testsystema4l(self):
19 import ascpy
20 L = ascpy.Library()
21 L.load('simpleflowsheet01.a4c')
22
23 def testatomsa4l(self):
24 import ascpy
25 L = ascpy.Library()
26 #L.clear();
27 L.load('atoms.a4l')
28
29 def testlog10(self):
30 import ascpy
31 L = ascpy.Library()
32 L.load('johnpye/testlog10.a4c')
33 T = L.findType('testlog10')
34 M = T.getSimulation('sim')
35 M.solve(ascpy.Solver("QRSlv"),ascpy.SolverReporter())
36 M.run(T.getMethod('self_test'))
37
38 class NotToBeTested:
39 def nothing(self):
40 pass
41
42
43 if __name__=='__main__':
44 unittest.main()

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22